diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 14:34:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 14:34:37 +0200 |
commit | 5a52c00c3721f4db7ae9a9f2c33b5ea4006be0c0 (patch) | |
tree | 7718eb3778c6b53508b73540c70df1e3ade03cfe | |
parent | service: split into tunnel and manager (diff) | |
download | wireguard-windows-5a52c00c3721f4db7ae9a9f2c33b5ea4006be0c0.tar.xz wireguard-windows-5a52c00c3721f4db7ae9a9f2c33b5ea4006be0c0.zip |
installer: quote tmpfile
8.3 is optional.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | installer/customactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer/customactions.js b/installer/customactions.js index 1647c20e..8628de54 100644 --- a/installer/customactions.js +++ b/installer/customactions.js @@ -22,7 +22,7 @@ function runWithNoWindowFlash(command) { var tmpfile = fso.BuildPath(fso.GetSpecialFolder(2), fso.GetTempName()); try { //TODO: Obviously cmd and tmpfile are unescaped here... - var cmd = fso.BuildPath(fso.GetSpecialFolder(1), "cmd.exe") + " /c " + command + " > " + tmpfile; + var cmd = fso.BuildPath(fso.GetSpecialFolder(1), "cmd.exe") + " /c " + command + " > \"" + tmpfile + "\""; var ret = wsh.Run(cmd, 0, true); if (ret != 0) { logMessage("Command " + cmd + " exited with error " + ret.toString()); |