We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e9380b commit 6722562Copy full SHA for 6722562
lib/oauth/helper.rb
@@ -15,11 +15,11 @@ def escape(value)
15
end
16
17
def _escape(string)
18
- URI.escape(string, OAuth::RESERVED_CHARACTERS)
+ URI::DEFAULT_PARSER.escape(string, OAuth::RESERVED_CHARACTERS)
19
20
21
def unescape(value)
22
- URI.unescape(value.gsub('+', '%2B'))
+ URI::DEFAULT_PARSER.unescape(value.gsub('+', '%2B'))
23
24
25
# Generate a random key of up to +size+ bytes. The value returned is Base64 encoded with non-word
0 commit comments