RichardSisonFerrer / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

Bug when percent encoding query parameters received as an array #173

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, patch follows:

diff --git a/share/www/script/oauth.js b/share/www/script/oauth.js
index aa0019d..ada00a2 100644
--- a/share/www/script/oauth.js
+++ b/share/www/script/oauth.js
@@ -78,7 +78,7 @@ OAuth.setProperties(OAuth, // utility functions
         }
         if (s instanceof Array) {
             var e = "";
-            for (var i = 0; i < s.length; ++s) {
+            for (var i = 0; i < s.length; ++i) {
                 if (e != "") e += '&';
                 e += percentEncode(s[i]);
             }

Original issue reported on code.google.com by fdman...@gmail.com on 21 Jun 2010 at 8:53

GoogleCodeExporter commented 9 years ago

Original comment by morten.f...@gmail.com on 29 Mar 2011 at 6:00