Escape arguments, refs #6414
parent
4ce39c75c7
commit
9824d339b6
|
@ -257,9 +257,9 @@ class EventDispatcher
|
||||||
throw new \RuntimeException('Failed to locate PHP binary to execute '.$scriptName);
|
throw new \RuntimeException('Failed to locate PHP binary to execute '.$scriptName);
|
||||||
}
|
}
|
||||||
|
|
||||||
$allowUrlFOpenFlag = ' -d allow_url_fopen=' . ini_get('allow_url_fopen');
|
$allowUrlFOpenFlag = ' -d allow_url_fopen=' . ProcessExecutor::escape(ini_get('allow_url_fopen'));
|
||||||
$disableFunctionsFlag = ' -d disable_functions="' . ini_get('disable_functions') . '"';
|
$disableFunctionsFlag = ' -d disable_functions=' . ProcessExecutor::escape(ini_get('disable_functions'));
|
||||||
$memoryLimitFlag = ' -d memory_limit=' . ini_get('memory_limit');
|
$memoryLimitFlag = ' -d memory_limit=' . ProcessExecutor::escape(ini_get('memory_limit'));
|
||||||
|
|
||||||
return ProcessExecutor::escape($phpPath) . $allowUrlFOpenFlag . $disableFunctionsFlag . $memoryLimitFlag;
|
return ProcessExecutor::escape($phpPath) . $allowUrlFOpenFlag . $disableFunctionsFlag . $memoryLimitFlag;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue