mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-13 15:21:33 -05:00
Fixed arguments with & in it.
This commit is contained in:
@@ -155,7 +155,7 @@ function CreateMeshCentralServer(config, args) {
|
||||
var arg = process.argv[i];
|
||||
if (arg.length > 0) {
|
||||
if (startLine.length > 0) startLine += ' ';
|
||||
if (arg.indexOf(' ') >= 0) { startLine += '"' + arg + '"'; } else { startLine += arg; }
|
||||
if ((arg.indexOf(' ') >= 0) || (arg.indexOf('&') >= 0)) { startLine += '"' + arg + '"'; } else { startLine += arg; }
|
||||
}
|
||||
}
|
||||
obj.launchChildServer(startLine);
|
||||
|
||||
Reference in New Issue
Block a user