Project

General

Profile

Bug #448

URI::join does not concatenate all strings passed in

Added by Anonymous over 11 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
[ruby-core:18312]

Description

=begin
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
=end

History

#1

Updated by shyouhei (Shyouhei Urabe) almost 11 years ago

  • Assignee set to akira (akira yamada)

=begin

=end

#2

Updated by akira (akira yamada) almost 11 years ago

  • Status changed from Open to Rejected
  • ruby -v set to ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

=begin
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')".
=end

Also available in: Atom PDF