mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Fix explode() call in legacy/helper.php to have correct types
Found while enabling strict_typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
33a6e265b2
commit
b356d0dfc4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue