From 12d9f3a5d1496fe6bf5f6da8190c04efedf7f320 Mon Sep 17 00:00:00 2001 From: Stefan Kruppa Date: Fri, 20 Mar 2015 18:40:44 +0100 Subject: [PATCH] Add escapeshellcmd for shell execution --- tests/CliTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CliTestCase.php b/tests/CliTestCase.php index 0fc20ef0..a0fece16 100644 --- a/tests/CliTestCase.php +++ b/tests/CliTestCase.php @@ -32,7 +32,7 @@ class CliTestCase } public function _invokeCommand($command, $reporter) { - $xml = shell_exec($command); + $xml = shell_exec(escapeshellcmd($command)); if (! $xml) { if (!$this->_quiet) { $reporter->paintFail('Command did not have any output [' . $command . ']');