From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 14:14:42 +0000 (+0200) Subject: #7684 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=2a9fb720f1a8497ca538ac06ac982e861a60bab7;p=cubist_util.git #7684 --- diff --git a/src/CommandLine.php b/src/CommandLine.php index 5f6e819..d6293d5 100644 --- a/src/CommandLine.php +++ b/src/CommandLine.php @@ -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);