mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed arguments with & in it.
This commit is contained in:
parent
61d48b5c74
commit
6a061b0d46
3 changed files with 7 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue