Skip to content

Commit 004becc

Browse files
committed
MQE-1673: command.php truncating values '0'
- added strlen to prevent removal of "0"
1 parent 3e8ee44 commit 004becc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

etc/config/command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
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));
26+
$commandParts = array_filter(explode(" ", $command), 'strlen');
27+
$argumentParts = array_filter(explode(" ", $arguments), 'strlen');
28+
$magentoBinaryParts = array_filter(explode(" ", $magentoBinary), 'strlen');
2929
$commandArray = array_merge($magentoBinaryParts, $commandParts);
3030
$process = new Symfony\Component\Process\Process($commandArray);
3131
$process->setIdleTimeout(60);

0 commit comments

Comments
 (0)