Bug 1592407 - Port OAuth2 decoding fix from gData add-on.

This commit is contained in:
Matt A. Tobin 2019-11-14 21:56:13 -05:00 • committed by Roy Tam
commit 084ac5f020

View file

@ -18,7 +18,7 @@ function parseURLData(aData) {
let result = {};
aData.split(/[?#]/, 2)[1].split("&").forEach(function (aParam) {
let [key, value] = aParam.split("=");
result[key] = value;
result[key] = decodeURIComponent(value);
});
return result;
}