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 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 );
You can’t perform that action at this time.
0 commit comments