From 56f665f5e85aeea2a34bf026bc5f44297bdc383f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 18 Jul 2023 09:50:25 +0200 Subject: [PATCH] fix #6066 @0:05 --- src/CommandLine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CommandLine.php b/src/CommandLine.php index 826dd30..2e85679 100644 --- a/src/CommandLine.php +++ b/src/CommandLine.php @@ -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); -- 2.39.5