diff options
| author | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-07 04:51:11 +0000 |
|---|---|---|
| committer | akira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-07 04:51:11 +0000 |
| commit | b99d877869773e8fa1c76e932a8b938b3223e0a7 (patch) | |
| tree | ded8203e542682aa90764b183c16fd7401e17be7 /lib/uri/generic.rb | |
| parent | c18488745a1ccd12ed1fb24492f04c1881f5856e (diff) | |
| download | ruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.tar.gz ruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.tar.xz ruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.zip | |
uri-0.9.5
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/generic.rb')
| -rw-r--r-- | lib/uri/generic.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 4d3ab67b7..1510e53ee 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -494,7 +494,7 @@ Object else if v && v != '' && ABS_PATH !~ v && REL_PATH !~ v raise InvalidComponentError, - "bad component(expected relative path component): #{@path}" + "bad component(expected relative path component): #{v}" end end @@ -688,7 +688,7 @@ Object end # RFC2396, Section 5.2, 6), a) - base_path.pop if !base_path.last.empty? + base_path.pop unless base_path.size == 1 # RFC2396, Section 5.2, 6), c) # RFC2396, Section 5.2, 6), d) @@ -719,7 +719,7 @@ Object # valid absolute path # end base_path << x - base_path += tmp + tmp.each {|t| base_path << t} add_trailer_slash = false break end |
