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:
commit
e4e39910f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue