We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2982550 commit 1535badCopy full SHA for 1535bad
1 file changed
lib/Auth/Process/AttributeAddFromLDAP.php
@@ -106,7 +106,7 @@ public function process(array &$request): void
106
foreach ($attributes as $attr => $val) {
107
$arrSearch[] = '%' . $attr . '%';
108
109
- if (strlen($val[0]) > 0) {
+ if (is_array($val) && count($val) > 0 && strlen($val[0]) > 0) {
110
$arrReplace[] = Ldap::escapeFilterValue($val[0]);
111
} else {
112
$arrReplace[] = '';
0 commit comments