From 7c9c7f0f63a57f397e4489a3b33643455add4d2a Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 2 Oct 2008 05:43:25 +0000 Subject: [PATCH] add global flag to escapeQuotes() in io.system --- content/io.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/io.js b/content/io.js index bf512044..8a687367 100644 --- a/content/io.js +++ b/content/io.js @@ -719,7 +719,7 @@ lookup: var stdoutFile = ioManager.createTempFile(); var stderrFile = ioManager.createTempFile(); - function escapeQuotes(str) str.replace('"', '\\"'); + function escapeQuotes(str) str.replace('"', '\\"', "g"); if (!stdoutFile || !stderrFile) // FIXME: error reporting return "";