]> _ Git - cubist_util.git/commitdiff
fix #6066 @0:05
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Jul 2023 07:50:25 +0000 (09:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Jul 2023 07:50:25 +0000 (09:50 +0200)
src/CommandLine.php

index 826dd30f0701c0ff4edd9ad7dbe3ab090d10d17d..2e856795a408d61e30de3843f4b8fd65e7ec2944 100644 (file)
@@ -45,7 +45,7 @@ class CommandLine
         if (null === $name && null === $val) {
             return;
         }
-        if (stristr($val, ' ') && !stristr($val, '>') && !stristr($val, '<')) {
+        if ((stristr($val, ' ') || stristr($val, '&')) && !stristr($val, '>') && !stristr($val, '<')) {
             $val = '"' . $val . '"';
         }
         $this->args[] = array($name, $val);