Skip to content

Commit fec6733

Browse files
authored
Merge pull request #166 from vivshaw/vivshaw/correct-obsolete-parse
Replace reference to the obsolete URI.escape with URI::RFC2396_PARSER.escape
2 parents 83f613a + 72e7d6b commit fec6733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/uri/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def self.split(uri)
237237
# URI.parse('http://[email protected]:123/forum/questions/?tag=networking&order=newest#top')
238238
# # => #<URI::HTTP http://[email protected]:123/forum/questions/?tag=networking&order=newest#top>
239239
#
240-
# It's recommended to first ::escape string +uri+
240+
# It's recommended to first URI::RFC2396_PARSER.escape string +uri+
241241
# if it may contain invalid URI characters.
242242
#
243243
def self.parse(uri)

0 commit comments

Comments
 (0)