Bug #448
URI::join does not concatenate all strings passed in
| Status: | Rejected | Start date: | 08/16/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | - | |||
| ruby -v: | ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] |
Description
URI::join("http://www.example.com/", "foo", "bar") should return "http://www.example.com/foo/bar", but returns "http://www.example.com/bar"
According to the source, the "merge" call should probably be "merge!"
Ruby version: ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.0.0]
(So I'm guessing this may be fixed already)
History
Updated by shyouhei (Shyouhei Urabe) over 3 years ago
- Assignee set to akira (akira yamada)
Updated by akira (akira yamada) over 3 years ago
- Status changed from Open to Rejected
- ruby -v set to ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
URI::join joins some URIs in the URI-manner. All arguments for the method are treated as an URI.
So "URI::join('http://www.example.com/', 'foo', 'bar')" is equal to "URI.parse('http://www.example.com/').merge('foo').merge('bar')".