mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-08 08:42:14 +02:00
Merge pull request #232 from drAlberT/patch-1
security fix, use escapeshellcmd()
This commit is contained in:
commit
4c8b5f508f
|
@ -212,7 +212,7 @@ class Console
|
|||
|
||||
$return = 1;
|
||||
$log = array();
|
||||
exec($command . ' 2>&1', $log, $return);
|
||||
exec(escapeshellcmd($command . ' 2>&1'), $log, $return);
|
||||
$log = implode(PHP_EOL, $log);
|
||||
|
||||
if (!$return) {
|
||||
|
|
Loading…
Reference in a new issue