Escape '!' to '\041' in posix strings ($'...')

This commit is contained in:
Fedor 2019-03-30 05:03:28 +03:00
parent 932b99bff3
commit 6f573a7c56
1 changed files with 1 additions and 0 deletions

View File

@ -375,6 +375,7 @@ const CurlUtils = {
.replace(/\'/g, "\\\'")
.replace(/\n/g, "\\n")
.replace(/\r/g, "\\r")
.replace(/!/g, "\\041")
.replace(/[^\x20-\x7E]/g, escapeCharacter) + "'";
}