summaryrefslogtreecommitdiffstats
path: root/devtools/client
diff options
context:
space:
mode:
authorBrian Grinstead <bgrinstead@mozilla.com>2019-03-23 10:56:30 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 10:56:30 +0100
commit3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae (patch)
treed204e7ec79451290b15d69a4d8bfb3d1b56ead81 /devtools/client
parent976be87431d76148c386ffe25d86dad467311ed6 (diff)
downloadUXP-3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae.tar
UXP-3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae.tar.gz
UXP-3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae.tar.lz
UXP-3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae.tar.xz
UXP-3cfdf908cc5e967efd3302f2b4be9a33d31ac5ae.zip
Escape '!' to '\041' in posix strings ($'...')
Diffstat (limited to 'devtools/client')
-rw-r--r--devtools/client/shared/curl.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/devtools/client/shared/curl.js b/devtools/client/shared/curl.js
index 6d33ad971..967019746 100644
--- a/devtools/client/shared/curl.js
+++ b/devtools/client/shared/curl.js
@@ -375,6 +375,7 @@ const CurlUtils = {
.replace(/\'/g, "\\\'")
.replace(/\n/g, "\\n")
.replace(/\r/g, "\\r")
+ .replace(/!/g, "\\041")
.replace(/[^\x20-\x7E]/g, escapeCharacter) + "'";
}