Skip to content

Commit 52bb6e9

Browse files
committed
Fixed issue 46 reported by Jens Ploetz (non-standard use of String replace() function for global matches).
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Share OAuth@771 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent cf6359e commit 52bb6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/web/extras/modules/oauth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ if (typeof Extras == "undefined" || !Extras)
548548
}
549549
params += encodeURIComponent(attr) + "=" +
550550
(YAHOO.lang.isUndefined(spaceChar) ? encodeURIComponent(o[attr]) : encodeURIComponent("" + o[attr]).
551-
replace("%20", spaceChar, "g").replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').
551+
replace(/%20/g, spaceChar).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').
552552
replace(/\)/g, '%29').replace(/\*/g, '%2A'));
553553
}
554554
}

0 commit comments

Comments
 (0)