Skip to content

Commit 9bbf352

Browse files
author
Dale Sikkema
committed
Merge branch 'MAGETWO-21160-disable-functions' into develop
2 parents 9e7d7b8 + b16bac7 commit 9bbf352

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)