diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 15:02:59 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-01 15:02:59 +0100 |
commit | aa60e7f7146d3b90931fd9e1fb01bed8399e6c23 (patch) | |
tree | 5632e769e7d979a626d9d916f766c80ff706caa2 /devtools/client | |
parent | 0535b0bb38dacf7dab31fd757a91ca9928292693 (diff) | |
download | UXP-aa60e7f7146d3b90931fd9e1fb01bed8399e6c23.tar UXP-aa60e7f7146d3b90931fd9e1fb01bed8399e6c23.tar.gz UXP-aa60e7f7146d3b90931fd9e1fb01bed8399e6c23.tar.lz UXP-aa60e7f7146d3b90931fd9e1fb01bed8399e6c23.tar.xz UXP-aa60e7f7146d3b90931fd9e1fb01bed8399e6c23.zip |
[minor fix] DevTools - Throws an error ("String contains an invalid character")
https://github.com/MoonchildProductions/moebius/pull/162
Diffstat (limited to 'devtools/client')
-rw-r--r-- | devtools/client/netmonitor/request-utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/client/netmonitor/request-utils.js b/devtools/client/netmonitor/request-utils.js index ba54efb4f..647d71e7c 100644 --- a/devtools/client/netmonitor/request-utils.js +++ b/devtools/client/netmonitor/request-utils.js @@ -92,7 +92,7 @@ exports.getFormDataSections = Task.async(function* (headers, uploadHeaders, post exports.formDataURI = function (mimeType, encoding, text) { if (!encoding) { encoding = "base64"; - text = btoa(text); + text = btoa(unescape(encodeURIComponent(text))); } return "data:" + mimeType + ";" + encoding + "," + text; }; |