We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4996fb commit dcac97aCopy full SHA for dcac97a
src/Auth/Process/AttributeAddFromLDAP.php
@@ -96,7 +96,7 @@ public function process(array &$state): void
96
foreach ($attributes as $attr => $val) {
97
$arrSearch[] = '%' . $attr . '%';
98
99
- if (is_array($val) && count($val) > 0 && strlen($val[0]) > 0) {
+ if (is_array($val) && count($val) > 0 && is_string($val[0]) && strlen($val[0]) > 0) {
100
$arrReplace[] = $this->connector->escapeFilterValue($val[0], true);
101
} else {
102
$arrReplace[] = '';
0 commit comments