Merge pull request #7819 from nextcloud/fix-explode-in-legacy-helper.php

Fix explode() call in legacy/helper.php to have correct types
This commit is contained in:
Morris Jobke 2018-01-12 17:59:15 +01:00 committed by GitHub
commit e4e39910f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -477,12 +477,12 @@ class OC_Helper {
return false;
}
$ini = \OC::$server->getIniWrapper();
$disabled = explode(',', $ini->get('disable_functions'));
$disabled = explode(',', $ini->get('disable_functions') ?: '');
$disabled = array_map('trim', $disabled);
if (in_array($function_name, $disabled)) {
return false;
}
$disabled = explode(',', $ini->get('suhosin.executor.func.blacklist'));
$disabled = explode(',', $ini->get('suhosin.executor.func.blacklist') ?: '');
$disabled = array_map('trim', $disabled);
if (in_array($function_name, $disabled)) {
return false;