Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Auth/Process/AttributeAddFromLDAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

use function array_values;

class AttributeAddFromLDAP extends BaseFilter

Check warning on line 19 in src/Auth/Process/AttributeAddFromLDAP.php

View workflow job for this annotation

GitHub Actions / Quality control

UnusedClass

src/Auth/Process/AttributeAddFromLDAP.php:19:7: UnusedClass: Class SimpleSAML\Module\ldap\Auth\Process\AttributeAddFromLDAP is never used (see https://psalm.dev/075)
{
/**
* LDAP attributes to add to the request attributes
Expand Down Expand Up @@ -96,7 +96,7 @@
foreach ($attributes as $attr => $val) {
$arrSearch[] = '%' . $attr . '%';

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) {
$arrReplace[] = $this->connector->escapeFilterValue($val[0], true);
} else {
$arrReplace[] = '';
Expand Down
Loading