Project

General

Profile

Actions

Bug #448

closed

URI::join does not concatenate all strings passed in

Added by Anonymous over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
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]
(So I'm guessing this may be fixed already)
=end

Actions #1

Updated by shyouhei (Shyouhei Urabe) about 15 years ago

  • Assignee set to akira (akira yamada)

=begin

=end

Actions #2

Updated by akira (akira yamada) about 15 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

Actions

Also available in: Atom PDF

Like0
Like0Like0