]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: when multiline values are passed as array, do not try to preg_split them. Fixes...
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 24 Oct 2013 12:27:33 +0000 (14:27 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 24 Oct 2013 12:27:33 +0000 (14:27 +0200)
apps/user_ldap/lib/configuration.php

index e9de106bdd0f364a5ed0a6b181a0f13b01692c3d..e14ed824a74f8056653ca7f5661f3e9f7e67627d 100644 (file)
@@ -241,7 +241,7 @@ class Configuration {
        protected function setMultiLine($varname, $value) {
                if(empty($value)) {
                        $value = '';
-               } else {
+               } else if (!is_array($value)) {
                        $value = preg_split('/\r\n|\r|\n/', $value);
                        if($value === false) {
                                $value = '';