File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
$ valid = validateCommand ($ magentoBinary , $ command );
24
24
if ($ valid ) {
25
25
// 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 );
30
30
$ process = new Symfony \Component \Process \Process ($ commandArray );
31
31
$ process ->setIdleTimeout (60 );
32
32
$ process ->setTimeout (0 );
You can’t perform that action at this time.
0 commit comments