]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/ohauth/ohauth.js
Encode parameters correctly when building an OAuth base string
[rails.git] / vendor / assets / ohauth / ohauth.js
index 0497da87c81fbb37b6aba9a67ab4c69d4c49913d..419fb2a1a611a83584db66aea192d62344b2fc09 100644 (file)
@@ -4,8 +4,8 @@ var ohauth = {};
 
 ohauth.qsString = function(obj) {
     return Object.keys(obj).sort().map(function(key) {
-        return encodeURIComponent(key) + '=' +
-            encodeURIComponent(obj[key]);
+        return ohauth.percentEncode(key) + '=' +
+            ohauth.percentEncode(obj[key]);
     }).join('&');
 };