[GData] Fix OAuth2 malformed authorization code

Seems Google is pulling shit by sending url encoded responses now.
TRUNK
Matt A. Tobin 2 years ago
parent 91bb501538
commit 4daa035faf
  1. 2
      providers/gdata/modules/OAuth2.jsm

@ -44,7 +44,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;
}

Loading…
Cancel
Save