]> _ Git - cubist_util.git/commitdiff
#7684
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:14:42 +0000 (16:14 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 7 Aug 2025 14:14:42 +0000 (16:14 +0200)
src/CommandLine.php

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