Skip to content

Commit

Permalink
Merge pull request #10323 from nextcloud/backport/10321/stable4.0
Browse files Browse the repository at this point in the history
[stable4.0] fix(contactsintegration): Limit number of search results
  • Loading branch information
ChristophWurst authored Nov 5, 2024
2 parents 19b898d + 9091ac8 commit 1c1f2cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Service/ContactsIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ private function doSearch(string $term, array $fields, bool $strictSearch, bool
$allowSystemUsers = $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'no') === 'yes';

$result = $this->contactsManager->search($term, $fields, [
'strict_search' => $strictSearch
'strict_search' => $strictSearch,
'limit' => 20,
]);
$matches = [];
foreach ($result as $r) {
Expand Down

0 comments on commit 1c1f2cf

Please sign in to comment.