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

This commit is contained in:
Brian Grinstead 2019-03-23 10:56:30 +01:00 committed by Roy Tam
commit d00f80f18f

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) + "'";
}