summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-07 19:47:01 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-07 19:47:01 +0100
commit09d7882571e047de4ed907f0f0317dae056cf890 (patch)
treecaed08e86ae82b7816e01505298bcf7c77c5e096 /lib/private/helper.php
parent9d869ab5968b737531a0f0bb3c648d7ffe920341 (diff)
downloadnextcloud-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.php4
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;
}