ruby-changes:34901
From: zzak <ko1@a...>
Date: Mon, 28 Jul 2014 06:28:05 +0900 (JST)
Subject: [ruby-changes:34901] zzak:r46984 (trunk): * lib/uri/common.rb: [DOC] [Bug #9563] Recommend using URI.escape
zzak 2014-07-28 06:27:10 +0900 (Mon, 28 Jul 2014) New Revision: 46984 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46984 Log: * lib/uri/common.rb: [DOC] [Bug #9563] Recommend using URI.escape before parsing a uri to avoid invalid characters. Reported by Evgeniy Serykh. Modified files: trunk/ChangeLog trunk/lib/uri/common.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 46983) +++ ChangeLog (revision 46984) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jul 28 06:24:54 2014 Zachary Scott <e@z...> + + * lib/uri/common.rb: [DOC] [Bug #9563] Recommend using URI.escape + before parsing a uri to avoid invalid characters. Reported by + Evgeniy Serykh. + Mon Jul 28 05:55:56 2014 Zachary Scott <e@z...> * time.c: [DOC] Clarify %Y in strftime, which can accept any digits Index: lib/uri/common.rb =================================================================== --- lib/uri/common.rb (revision 46983) +++ lib/uri/common.rb (revision 46984) @@ -219,6 +219,9 @@ module URI https://github.com/ruby/ruby/blob/trunk/lib/uri/common.rb#L219 # p uri.host # # => "www.ruby-lang.org" # + # It's recommended to first ::escape the provided +uri_str+ if there are any + # invalid URI characters. + # def self.parse(uri) RFC3986_PARSER.parse(uri) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/