fix parameter provided as string not array
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
a4c7a62394
commit
9fc88bd217
|
@ -201,7 +201,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
||||||
$pos = strpos($memberURLs[0], '(');
|
$pos = strpos($memberURLs[0], '(');
|
||||||
if ($pos !== false) {
|
if ($pos !== false) {
|
||||||
$memberUrlFilter = substr($memberURLs[0], $pos);
|
$memberUrlFilter = substr($memberURLs[0], $pos);
|
||||||
$foundMembers = $this->access->searchUsers($memberUrlFilter, 'dn');
|
$foundMembers = $this->access->searchUsers($memberUrlFilter, ['dn']);
|
||||||
$dynamicMembers = [];
|
$dynamicMembers = [];
|
||||||
foreach ($foundMembers as $value) {
|
foreach ($foundMembers as $value) {
|
||||||
$dynamicMembers[$value['dn'][0]] = 1;
|
$dynamicMembers[$value['dn'][0]] = 1;
|
||||||
|
@ -1076,6 +1076,7 @@ class Group_LDAP extends BackendUtility implements \OCP\GroupInterface, IGroupLD
|
||||||
if (!$this->enabled) {
|
if (!$this->enabled) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
$search = $this->access->escapeFilterPart($search, true);
|
||||||
$cacheKey = 'getGroups-' . $search . '-' . $limit . '-' . $offset;
|
$cacheKey = 'getGroups-' . $search . '-' . $limit . '-' . $offset;
|
||||||
|
|
||||||
//Check cache before driving unnecessary searches
|
//Check cache before driving unnecessary searches
|
||||||
|
|
Loading…
Reference in New Issue