diff --git a/etc/config/command.php b/etc/config/command.php index 9de9e31c7..7b80d7284 100644 --- a/etc/config/command.php +++ b/etc/config/command.php @@ -23,10 +23,10 @@ $valid = validateCommand($magentoBinary, $command); if ($valid) { // Turn string into array for symfony escaping - $commandParts = array_filter(explode(" ", $command)); - $argumentParts = array_filter(explode(" ", $arguments)); - $magentoBinaryParts = array_filter(explode(" ", $magentoBinary)); - $commandArray = array_merge($magentoBinaryParts, $commandParts); + $commandParts = array_filter(explode(" ", $command), 'strlen'); + $argumentParts = array_filter(explode(" ", $arguments), 'strlen'); + $magentoBinaryParts = array_filter(explode(" ", $magentoBinary), 'strlen'); + $commandArray = array_merge($magentoBinaryParts, $commandParts, $argumentParts); $process = new Symfony\Component\Process\Process($commandArray); $process->setIdleTimeout(60); $process->setTimeout(0);