Skip to content

Commit b389e6d

Browse files
authored
Merge pull request voryx#70 from valepu/patch-2
Add escapeshellarg to PHP_BINARY
2 parents 6bd9d14 + 177a20e commit b389e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Voryx/ThruwayBundle/Command/ThruwayProcessCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function add()
263263
*/
264264
protected function addSymfonyCmdWorkers($env)
265265
{
266-
$phpBinary = PHP_BINARY;
266+
$phpBinary = escapeshellarg(PHP_BINARY);
267267
if (!$this->input->getOption('no-exec')) {
268268
$phpBinary = 'exec ' . $phpBinary;
269269
}
@@ -320,7 +320,7 @@ protected function addShellCmdWorkers()
320320
*/
321321
protected function addWorkers($env)
322322
{
323-
$phpBinary = PHP_BINARY;
323+
$phpBinary = escapeshellarg(PHP_BINARY);
324324
if (!$this->input->getOption('no-exec')) {
325325
$phpBinary = 'exec ' . $phpBinary;
326326
}

0 commit comments

Comments
 (0)