1
0
Fork 0

Escape arguments, refs #6414

pull/6341/merge
Jordi Boggiano 2017-05-16 22:18:19 +02:00
parent 4ce39c75c7
commit 9824d339b6
1 changed files with 3 additions and 3 deletions

View File

@ -257,9 +257,9 @@ class EventDispatcher
throw new \RuntimeException('Failed to locate PHP binary to execute '.$scriptName);
}
$allowUrlFOpenFlag = ' -d allow_url_fopen=' . ini_get('allow_url_fopen');
$disableFunctionsFlag = ' -d disable_functions="' . ini_get('disable_functions') . '"';
$memoryLimitFlag = ' -d memory_limit=' . ini_get('memory_limit');
$allowUrlFOpenFlag = ' -d allow_url_fopen=' . ProcessExecutor::escape(ini_get('allow_url_fopen'));
$disableFunctionsFlag = ' -d disable_functions=' . ProcessExecutor::escape(ini_get('disable_functions'));
$memoryLimitFlag = ' -d memory_limit=' . ProcessExecutor::escape(ini_get('memory_limit'));
return ProcessExecutor::escape($phpPath) . $allowUrlFOpenFlag . $disableFunctionsFlag . $memoryLimitFlag;
}