diff --git a/src/N98/Magento/Command/MagentoCoreProxyCommand.php b/src/N98/Magento/Command/MagentoCoreProxyCommand.php index 313169d1..73a606df 100644 --- a/src/N98/Magento/Command/MagentoCoreProxyCommand.php +++ b/src/N98/Magento/Command/MagentoCoreProxyCommand.php @@ -72,8 +72,13 @@ protected function execute(InputInterface $input, OutputInterface $output) ); } + $shellCommand = escapeshellarg(OperatingSystem::getPhpBinary()) + . ' ' + . escapeshellarg($this->magentoRootDir . '/bin/magento') + . ' ' + . $magentoCoreCommandInput->__toString(); $process = Process::fromShellCommandline( - OperatingSystem::getPhpBinary() . ' ' . $this->magentoRootDir . '/bin/magento ' . $magentoCoreCommandInput->__toString(), + $shellCommand, $this->magentoRootDir, $envVariablesForBinMagento );