From 2a9fb720f1a8497ca538ac06ac982e861a60bab7 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Aug 2025 16:14:42 +0200 Subject: [PATCH] #7684 --- src/CommandLine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5