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.
1 parent cc90996 commit b754b18Copy full SHA for b754b18
etc/config/command.php
@@ -10,7 +10,7 @@
10
$password = urldecode($_POST['password']);
11
$command = urldecode($_POST['command']);
12
if (array_key_exists("arguments", $_POST)) {
13
- $arguments = urldecode($_POST['arguments']);
+ $arguments = escapeshellarg(urldecode($_POST['arguments']));
14
} else {
15
$arguments = null;
16
}
@@ -21,7 +21,7 @@
21
$valid = validateCommand($magentoBinary, $command);
22
if ($valid) {
23
exec(
24
- escapeCommand($magentoBinary . ' ' . $command) . " $arguments" ." 2>&1",
+ escapeCommand($magentoBinary . " $command" . " $arguments") . " 2>&1",
25
$output,
26
$exitCode
27
);
0 commit comments