]> source.dussan.org Git - nextcloud-server.git/commitdiff
trimming all array elements
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Jan 2014 18:47:01 +0000 (19:47 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 7 Jan 2014 18:47:01 +0000 (19:47 +0100)
lib/private/helper.php

index a06932a11f98d4286e0efe5a7e1b54ce3c0a8c67..1c8d01c141fda4d9cd7e844f29fa8252a44e5808 100644 (file)
@@ -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;
                }