1
0
Fork 0

Fix php5.3 syntax

2.2
Jordi Boggiano 2024-06-10 22:43:54 +02:00
parent e9560a619e
commit 2d598484bb
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ class ProcessExecutor
// New lines break cmd.exe command parsing // New lines break cmd.exe command parsing
// and special chars like the fullwidth quote can be used to break out // and special chars like the fullwidth quote can be used to break out
// of parameter encoding via "Best Fit" encoding conversion // of parameter encoding via "Best Fit" encoding conversion
$argument = strtr($argument, [ $argument = strtr($argument, array(
"\n" => ' ', "\n" => ' ',
"\u{ff02}" => '"', "\u{ff02}" => '"',
"\u{02ba}" => '"', "\u{02ba}" => '"',
@ -504,7 +504,7 @@ class ProcessExecutor
"\u{2044}" => '/', "\u{2044}" => '/',
"\u{2215}" => '/', "\u{2215}" => '/',
"\u{00b4}" => '/', "\u{00b4}" => '/',
]); ));
// In addition to whitespace, commas need quoting to preserve paths // In addition to whitespace, commas need quoting to preserve paths
$quote = strpbrk($argument, " \t,") !== false; $quote = strpbrk($argument, " \t,") !== false;