[ruby-cvs:68399] knu:r61218 (trunk): Allow empty path components in a URI [Bug #8352]

knu at ruby-lang.org knu at ruby-lang.org
Thu Dec 14 10:11:28 JST 2017


knu	2017-12-14 10:11:28 +0900 (Thu, 14 Dec 2017)

  New Revision: 61218

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61218

  Log:
    Allow empty path components in a URI [Bug #8352]
    
    * generic.rb (URI::Generic#merge, URI::Generic#route_to): Fix a bug
      where a sequence of slashes in the path part gets collapsed to a
      single slash.  According to the relevant RFCs and WHATWG URL
      Standard, empty path components are simply valid and there is no
      special treatment defined for them, so we just keep them as they
      are.

  Modified files:
    trunk/NEWS
    trunk/lib/uri/generic.rb
    trunk/test/uri/test_generic.rb


More information about the ruby-cvs mailing list