aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/installer
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:34:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 14:34:37 +0200
commit659143da729939c5c8eb66657892d49bf76d5673 (patch)
tree7718eb3778c6b53508b73540c70df1e3ade03cfe /installer
parentservice: split into tunnel and manager (diff)
downloadwireguard-windows-659143da729939c5c8eb66657892d49bf76d5673.tar.xz
wireguard-windows-659143da729939c5c8eb66657892d49bf76d5673.zip
installer: quote tmpfile
8.3 is optional.
Diffstat (limited to 'installer')
-rw-r--r--installer/customactions.js2
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());