Skip to content

Commit

Permalink
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 <[email protected]>
  • Loading branch information
smarinier committed Jun 12, 2024
1 parent ddb840c commit 8621eba
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
Expand Up @@ -1564,7 +1564,7 @@ private function prepareSearchTerm(string $term): string {
if ($term === '') {
$result = '*';
} elseif ($allowEnum !== 'no') {
$result = $term . '*';
$result = '*' . $term . '*';
}
return $result;
}
Expand Down

0 comments on commit 8621eba

Please sign in to comment.