diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2023-08-11 09:05:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 09:05:36 +0200 |
commit | 0642cecaae20ee43bb102888b362cf179920433f (patch) | |
tree | 5e4a3319d1e1102d2d4233aeea40a86ea5d53645 /apps | |
parent | bb06aadda99b649af99ed709e6aa67da59a9b8cb (diff) | |
parent | d47e1221803531dd30ef35a96af456ba4a3a8cdb (diff) | |
download | nextcloud-server-0642cecaae20ee43bb102888b362cf179920433f.tar.gz nextcloud-server-0642cecaae20ee43bb102888b362cf179920433f.zip |
Merge pull request #39746 from nextcloud/backport/39058/stable27
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/Access.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 3f120caefe6..40be2b9601a 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1545,12 +1545,16 @@ class Access extends LDAPUtility { return ''; } // wildcards don't work with some attributes - $filter[] = $fallbackAttribute . '=' . $originalSearch; + if ($originalSearch !== '') { + $filter[] = $fallbackAttribute . '=' . $originalSearch; + } $filter[] = $fallbackAttribute . '=' . $search; } else { foreach ($searchAttributes as $attribute) { // wildcards don't work with some attributes - $filter[] = $attribute . '=' . $originalSearch; + if ($originalSearch !== '') { + $filter[] = $attribute . '=' . $originalSearch; + } $filter[] = $attribute . '=' . $search; } } |