Skip to content

Commit b16bac7

Browse files
author
Dale Sikkema
committed
MAGETWO-21160: CLONE - Checking for functions which are disabled in php.ini in cron.php works wrong
1 parent a5d01de commit b16bac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Shell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function execute($command, array $arguments = [])
4949
$command = $this->commandRenderer->render($command, $arguments);
5050
$this->log($command);
5151

52-
$disabled = explode(',', ini_get('disable_functions'));
52+
$disabled = explode(',', str_replace(' ', ',', ini_get('disable_functions')));
5353
if (in_array('exec', $disabled)) {
5454
throw new Exception\LocalizedException(new \Magento\Framework\Phrase("exec function is disabled."));
5555
}

0 commit comments

Comments
 (0)