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>
pull/7819/head
Morris Jobke 8 years ago
parent 33a6e265b2
commit b356d0dfc4
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
  1. 4
      lib/private/legacy/helper.php

@ -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…
Cancel
Save