LDAP: when multiline values are passed as array, do not try to preg_split them. Fixes #5521

This commit is contained in:
Arthur Schiwon 2013-10-24 14:27:33 +02:00
parent 6284e95e2b
commit 20f46602bd
1 changed files with 1 additions and 1 deletions

View 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 = '';