0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-03-23 14:27:02 +00:00

Add escapeshellcmd for shell execution

This commit is contained in:
Stefan Kruppa 2015-03-20 18:40:44 +01:00
parent c67e4c2f7e
commit 12d9f3a5d1

View File

@ -32,7 +32,7 @@ class CliTestCase
} }
public function _invokeCommand($command, $reporter) public function _invokeCommand($command, $reporter)
{ {
$xml = shell_exec($command); $xml = shell_exec(escapeshellcmd($command));
if (! $xml) { if (! $xml) {
if (!$this->_quiet) { if (!$this->_quiet) {
$reporter->paintFail('Command did not have any output [' . $command . ']'); $reporter->paintFail('Command did not have any output [' . $command . ']');