If using "Add Member" and entering some (short) search term, I will get a "Allowed memory size exhausted" message in the log (because there are a lot of users in LDAP). There is no limit for the results and no minimum length for the searchterm.
I propose
to add a minimum length for the searchterm, maybe by adding if (strlen($str)<4) return $result; in the searchGlobal function below the $result=[]; in lib/Service/SerachService.php
to add a maximum value for the results in lib/Search/LocalUser.php (function search): $users = $userManager->search($search,20);
If using "Add Member" and entering some (short) search term, I will get a "Allowed memory size exhausted" message in the log (because there are a lot of users in LDAP). There is no limit for the results and no minimum length for the searchterm.
I propose
if (strlen($str)<4) return $result;
in the searchGlobal function below the$result=[];
in lib/Service/SerachService.php$users = $userManager->search($search,20);
(I'm using NC 17.0.3 / Circles 0.17.10)