Bug #4476

[PATCH] URI('http://hoge/b/').route_to('http://hoge/b') wrongly returns './'

Added by Akinori MUSHA about 3 years ago. Updated almost 3 years ago.

[ruby-core:35444]
Status:Closed
Priority:Normal
Assignee:akira yamada
Category:lib
Target version:-
ruby -v:ruby 1.9.3dev (2011-03-03 trunk 31011) [x86_64-freebsd8] Backport:

Description

=begin
When it should be '../b'.

I revamped URI::Generic#routefrompath so that (trailing) slashes are properly and explicitly handled.
Please review the attached patch.
=end

0001-lib-uri-generic.rb-route_from_path-Fix-a-bug-in-rela.patch Magnifier (3.05 KB) Akinori MUSHA, 03/07/2011 05:49 PM

Associated revisions

Revision 31288
Added by Akinori MUSHA about 3 years ago

  • lib/uri/generic.rb (#routefrompath): Fix a bug where URI('http://h/b/').route_to('http://h/b') wrongly returned './' (should be '../b'). [Bug #4476]

History

#1 Updated by Akinori MUSHA about 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to akira yamada

=begin

=end

#2 Updated by akira yamada about 3 years ago

=begin
I confirmed. Could you please commit your patch?
=end

#3 Updated by Akinori MUSHA about 3 years ago

  • Status changed from Assigned to Closed

=begin

=end

Also available in: Atom PDF