mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Make sure command line arguments with whitespace are enclosed in quotes
This commit is contained in:
parent
d452978605
commit
1a34aafddd
1 changed files with 1 additions and 1 deletions
|
@ -600,7 +600,7 @@ BFP_EXPORT void BFP_CALLTYPE BfpSystem_SetCommandLine(int argc, char** argv)
|
|||
gCmdLine.Append(' ');
|
||||
|
||||
String arg = argv[i];
|
||||
if ((arg.Contains(' ')) || (arg.Contains('\"')))
|
||||
if (arg.Contains(' ') || arg.Contains('\t') || arg.Contains('\r') || arg.Contains('\n') || arg.Contains('\"'))
|
||||
{
|
||||
arg.Replace("\"", "\\\"");
|
||||
gCmdLine.Append("\"");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue