diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-07 19:47:01 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-01-07 19:47:01 +0100 |
commit | 09d7882571e047de4ed907f0f0317dae056cf890 (patch) | |
tree | caed08e86ae82b7816e01505298bcf7c77c5e096 /lib/private/helper.php | |
parent | 9d869ab5968b737531a0f0bb3c648d7ffe920341 (diff) | |
download | nextcloud-server-09d7882571e047de4ed907f0f0317dae056cf890.tar.gz nextcloud-server-09d7882571e047de4ed907f0f0317dae056cf890.zip |
trimming all array elements
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r-- | lib/private/helper.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php index a06932a11f9..1c8d01c141f 100644 --- a/lib/private/helper.php +++ b/lib/private/helper.php @@ -859,10 +859,12 @@ class OC_Helper { return false; } $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; } |