diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-11 17:39:52 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-11 17:39:52 +0000 |
commit | 8bc28d82b44654f907c5ee468b79de2afab97e8d (patch) | |
tree | d4ecdf61c95c1acca1c9b4ebc591a6bd616c2db9 | |
parent | b91220fbd5a9a6ace8216987d6b32a8d8bae0f36 (diff) | |
download | ruby-8bc28d82b44654f907c5ee468b79de2afab97e8d.tar.gz |
* lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a
symbol. [ruby-core:19805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/uri/generic.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -4,6 +4,11 @@ Tue Nov 11 23:02:27 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> (--yydebug): wrote "do not use". (--dump): wrote "do not use". +Tue Nov 11 21:22:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a + symbol. [ruby-core:19805] + Tue Nov 11 20:49:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com> * configure.in: fix SEGV on Mac OS X 10.5.3 with pthread. diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index f569a22f49..65c6c7379d 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -481,7 +481,7 @@ module URI "bad component(expected absolute path component): #{v}" end else - if v && v != '' && @parser.regexp[:ABS_PATH] !~ v && @parser.regexp[REL_PATH] !~ v + if v && v != '' && @parser.regexp[:ABS_PATH] !~ v && @parser.regexp[:REL_PATH] !~ v raise InvalidComponentError, "bad component(expected relative path component): #{v}" end |