mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 03:42:27 +01:00
add global flag to escapeQuotes() in io.system
This commit is contained in:
@@ -719,7 +719,7 @@ lookup:
|
|||||||
var stdoutFile = ioManager.createTempFile();
|
var stdoutFile = ioManager.createTempFile();
|
||||||
var stderrFile = ioManager.createTempFile();
|
var stderrFile = ioManager.createTempFile();
|
||||||
|
|
||||||
function escapeQuotes(str) str.replace('"', '\\"');
|
function escapeQuotes(str) str.replace('"', '\\"', "g");
|
||||||
|
|
||||||
if (!stdoutFile || !stderrFile) // FIXME: error reporting
|
if (!stdoutFile || !stderrFile) // FIXME: error reporting
|
||||||
return "";
|
return "";
|
||||||
|
|||||||
Reference in New Issue
Block a user