Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow LDAP search users with *term*
Browse files Browse the repository at this point in the history
Fix nextcloud#11540 and nextcloud#14153

Signed-off-by: Sebastien Marinier <seb@smarinier.net>
smarinier committed May 28, 2024
1 parent ddb840c commit 08fe4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/Access.php
Original file line number Diff line number Diff line change
@@ -1564,7 +1564,7 @@ private function prepareSearchTerm(string $term): string {
if ($term === '') {
$result = '*';
} elseif ($allowEnum !== 'no') {
$result = $term . '*';
$result = '*' . $term . '*';
}
return $result;
}

0 comments on commit 08fe4e2

Please sign in to comment.