fix shell command injection

This commit is contained in:
Gordon Franke 2014-08-07 09:01:16 +02:00
parent 72b70636ba
commit 4fa9288fda
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class Shell
return false;
}
$command = escapeshellcmd($command);
// todo: find a better way (command could not be available)
exec('command -v '.$command, $output, $code);