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.
2 parents 95d3843 + 11a4dda commit 0b0401cCopy full SHA for 0b0401c
1 file changed
apps/user_ldap/lib/Access.php
@@ -1572,7 +1572,12 @@ private function prepareSearchTerm(string $term): string {
1572
if ($term === '') {
1573
$result = '*';
1574
} elseif ($allowEnum) {
1575
- $result = $term . '*';
+ $usePrefixWildcard = $this->appConfig->getValueBool('user_ldap', 'partial_search_with_prefix_wildcard', false);
1576
+ if ($usePrefixWildcard) {
1577
+ $result = '*' . $term . '*';
1578
+ } else {
1579
+ $result = $term . '*';
1580
+ }
1581
}
1582
return $result;
1583
0 commit comments