mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-01 20:42:10 +00:00
If Process.start contains spaces, add quotes
This commit is contained in:
parent
1dcfe661e9
commit
e2b8f4f89a
1 changed files with 3 additions and 0 deletions
|
@ -593,6 +593,9 @@ namespace ServiceLib.Common
|
|||
return;
|
||||
}
|
||||
|
||||
if (fileName.Contains(' ')) fileName = fileName.AppendQuotes();
|
||||
if (arguments.Contains(' ')) arguments = arguments.AppendQuotes();
|
||||
|
||||
Process.Start(new ProcessStartInfo(fileName, arguments) { UseShellExecute = true });
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Reference in a new issue