diff --git a/common/content/io.js b/common/content/io.js index d367e10d..229839b1 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -715,7 +715,7 @@ lookup: { liberator.echomsg("Calling shell to execute: " + command, 4); - function escape(str) '"' + str.replace(/([\\"$])/g, "\\$1") + '"'; + function escape(str) '"' + str.replace(/[\\"$]/g, "\\$&") + '"'; let stdoutFile = ioManager.createTempFile(); let stderrFile = ioManager.createTempFile();