From: Vincent Vanwaelscappel Date: Tue, 18 Jul 2023 07:50:25 +0000 (+0200) Subject: fix #6066 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=56f665f5e85aeea2a34bf026bc5f44297bdc383f;p=cubist_util.git fix #6066 @0:05 --- 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);