Browse Source

Merge pull request #232 from drAlberT/patch-1

security fix, use escapeshellcmd()
1.0
Kuba Turek 10 years ago
parent
commit
4c8b5f508f
  1. 2
      Mage/Console.php

2
Mage/Console.php

@ -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…
Cancel
Save