From 48253c27c108ef550ae1ecaf238ea1219837c918 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 11 Nov 2008 17:39:52 +0000 Subject: * lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a symbol. [ruby-core:19805] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/uri/generic.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b36dc4083..374d57ca7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ Tue Nov 11 23:02:27 2008 Yuki Sonoda (Yugui) (--yydebug): wrote "do not use". (--dump): wrote "do not use". +Tue Nov 11 21:22:28 2008 Yukihiro Matsumoto + + * 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 * 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 f569a22f4..65c6c7379 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 -- cgit