LDAP: when multiline values are passed as array, do not try to preg_split them. Fixes #5521
This commit is contained in:
parent
6284e95e2b
commit
20f46602bd
|
@ -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 = '';
|
||||
|
|
Loading…
Reference in New Issue