We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 676868a commit 39d592cCopy full SHA for 39d592c
src/Divinity76/quoteshellarg/quoteshellarg.php
@@ -15,7 +15,7 @@ function quoteshellarg(string $arg): string
15
{
16
static $isUnix = null;
17
if ($isUnix === null) {
18
- $isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true);
+ $isUnix = in_array(PHP_OS_FAMILY, array('Linux', 'BSD', 'Darwin', 'Solaris'), true) || PHP_OS === 'CYGWIN';
19
}
20
if ($isUnix) {
21
// PHP's built-in escapeshellarg() for unix is kindof garbage: https://3v4l.org/Hkv7h
0 commit comments