fixes sharing to group ids with characters that are being url encoded
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
15e4f1c181
commit
1186977589
|
@ -345,9 +345,6 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
$principals = $this->principalBackend->getGroupMembership($principalUriOriginal, true);
|
||||
$principals = array_merge($principals, $this->principalBackend->getCircleMembership($principalUriOriginal));
|
||||
|
||||
$principals = array_map(function ($principal) {
|
||||
return urldecode($principal);
|
||||
}, $principals);
|
||||
$principals[] = $principalUri;
|
||||
|
||||
$fields = array_values($this->propertyMap);
|
||||
|
|
|
@ -107,6 +107,7 @@ class Backend {
|
|||
return;
|
||||
}
|
||||
|
||||
$principal[2] = urldecode($principal[2]);
|
||||
if (($principal[1] === 'users' && !$this->userManager->userExists($principal[2])) ||
|
||||
($principal[1] === 'groups' && !$this->groupManager->groupExists($principal[2]))) {
|
||||
// User or group does not exist
|
||||
|
|
Loading…
Reference in New Issue