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.
2 parents a11909a + 4606a73 commit c3c9b47Copy full SHA for c3c9b47
lib/oauth.rb
@@ -4,7 +4,6 @@
4
require 'oauth/version'
5
6
require 'oauth/oauth'
7
-require 'oauth/core_ext'
8
9
require 'oauth/client/helper'
10
require 'oauth/signature/hmac/sha1'
lib/oauth/core_ext.rb
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