mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-26 02:17:34 +09:00
Bug 1592407 - Port OAuth2 decoding fix from gData add-on.
This commit is contained in:
parent
1953b80007
commit
084ac5f020
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ function parseURLData(aData) {
|
||||||
let result = {};
|
let result = {};
|
||||||
aData.split(/[?#]/, 2)[1].split("&").forEach(function (aParam) {
|
aData.split(/[?#]/, 2)[1].split("&").forEach(function (aParam) {
|
||||||
let [key, value] = aParam.split("=");
|
let [key, value] = aParam.split("=");
|
||||||
result[key] = value;
|
result[key] = decodeURIComponent(value);
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue