summaryrefslogtreecommitdiff
path: root/mailnews
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2019-11-14 21:56:13 -0500
committerMatt A. Tobin <email@mattatobin.com>2019-11-14 21:56:13 -0500
commitf3d462c6049bd2f35571c2a0e2a7c4df4f3ca81c (patch)
tree9478a6dac5f25492920b97ff8f62ff0dee4056cd /mailnews
parent1d30f6fa8413746ddc408f93710d701493af273d (diff)
downloaduxp-f3d462c6049bd2f35571c2a0e2a7c4df4f3ca81c.tar.gz
Bug 1592407 - Port OAuth2 decoding fix from gData add-on.
Diffstat (limited to 'mailnews')
-rw-r--r--mailnews/base/util/OAuth2.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailnews/base/util/OAuth2.jsm b/mailnews/base/util/OAuth2.jsm
index 8e6f9e713a..94f850e0be 100644
--- a/mailnews/base/util/OAuth2.jsm
+++ b/mailnews/base/util/OAuth2.jsm
@@ -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;
}