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:
parent
c67e4c2f7e
commit
12d9f3a5d1
@ -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 . ']');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user