mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-15 21:40:18 +02:00
security fix, use escapeshellcmd()
This commit is contained in:
parent
c69d8888f5
commit
8c55588918
@ -212,7 +212,7 @@ class Console
|
|||||||
|
|
||||||
$return = 1;
|
$return = 1;
|
||||||
$log = array();
|
$log = array();
|
||||||
exec($command . ' 2>&1', $log, $return);
|
exec(escapeshellcmd($command . ' 2>&1'), $log, $return);
|
||||||
$log = implode(PHP_EOL, $log);
|
$log = implode(PHP_EOL, $log);
|
||||||
|
|
||||||
if (!$return) {
|
if (!$return) {
|
||||||
|
Loading…
Reference in New Issue
Block a user