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 4a59f29 commit 5127e0aCopy full SHA for 5127e0a
etc/config/command.php
@@ -22,14 +22,8 @@
22
$magentoBinary = $php . ' -f ../../../../bin/magento';
23
$valid = validateCommand($magentoBinary, $command);
24
if ($valid) {
25
- $fullCommand = $magentoBinary . " $command" . " $arguments";
26
- $escapedCommand = escapeshellcmd($fullCommand);
27
- if ($fullCommand !== $escapedCommand) {
28
- http_response_code(403);
29
- echo("Unsafe characters detected, command was not executed.");
30
- return;
31
- }
32
- $process = new Symfony\Component\Process\Process($escapedCommand);
+ $fullCommand = escapeshellcmd($magentoBinary . " $command" . " $arguments");
+ $process = new Symfony\Component\Process\Process($fullCommand);
33
$process->setIdleTimeout(60);
34
$process->setTimeout(0);
35
$idleTimeout = false;
0 commit comments