mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #25367 from nextcloud/backport/25361/stable19
[stable19] fix parameter provided as string not array
This commit is contained in:
commit
aff475b51d
1 changed files with 2 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
|||
$pos = strpos($memberURLs[0], '(');
|
||||
if ($pos !== false) {
|
||||
$memberUrlFilter = substr($memberURLs[0], $pos);
|
||||
$foundMembers = $this->access->searchUsers($memberUrlFilter, 'dn');
|
||||
$foundMembers = $this->access->searchUsers($memberUrlFilter, ['dn']);
|
||||
$dynamicMembers = [];
|
||||
foreach ($foundMembers as $value) {
|
||||
$dynamicMembers[$value['dn'][0]] = 1;
|
||||
|
|
@ -1076,6 +1076,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
|||
if (!$this->enabled) {
|
||||
return [];
|
||||
}
|
||||
$search = $this->access->escapeFilterPart($search, true);
|
||||
$cacheKey = 'getGroups-' . $search . '-' . $limit . '-' . $offset;
|
||||
|
||||
//Check cache before driving unnecessary searches
|
||||
|
|
|
|||
Loading…
Reference in a new issue