We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0961c9e + 9d3048d commit ae385bdCopy full SHA for ae385bd
dev/tests/functional/utils/command.php
@@ -14,8 +14,10 @@
14
15
if (isset($_GET['command'])) {
16
$command = urldecode($_GET['command']);
17
- if (in_array(explode(' ', $command)[0], $commandList)) {
18
- exec('php -f ../../../../bin/magento ' . $command);
+ if (!strpos($command, '&&') && !strpos($command, ';')) {
+ if (in_array(explode(' ', $command)[0], $commandList)) {
19
+ exec('php -f ../../../../bin/magento ' . $command);
20
+ }
21
}
22
} else {
23
throw new \InvalidArgumentException("Command GET parameter is not set.");
0 commit comments