Skip to content

Commit fcb8999

Browse files
authored
Merge pull request #398 from magento/MQE-1673
MQE-1673: command.php truncating values '0'
2 parents b6c1e8a + 53eca7c commit fcb8999

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etc/config/command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
$valid = validateCommand($magentoBinary, $command);
2424
if ($valid) {
2525
// Turn string into array for symfony escaping
26-
$commandParts = array_filter(explode(" ", $command));
27-
$argumentParts = array_filter(explode(" ", $arguments));
28-
$magentoBinaryParts = array_filter(explode(" ", $magentoBinary));
29-
$commandArray = array_merge($magentoBinaryParts, $commandParts);
26+
$commandParts = array_filter(explode(" ", $command), 'strlen');
27+
$argumentParts = array_filter(explode(" ", $arguments), 'strlen');
28+
$magentoBinaryParts = array_filter(explode(" ", $magentoBinary), 'strlen');
29+
$commandArray = array_merge($magentoBinaryParts, $commandParts, $argumentParts);
3030
$process = new Symfony\Component\Process\Process($commandArray);
3131
$process->setIdleTimeout(60);
3232
$process->setTimeout(0);

0 commit comments

Comments
 (0)