aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2017-06-08 09:08:24 +0200
committerGeorg Ehrke <developer@georgehrke.com>2017-06-12 21:01:30 +0200
commit35781ae45c517bb39cf3e43a5877226ab4c89bb6 (patch)
tree6eb19bf92ed5baa352b4e85312bcefe27e5594fa /apps/dav/lib/CardDAV
parent0577e55559a9402b3c58e46d888b6780dbb6c68f (diff)
downloadnextcloud-server-35781ae45c517bb39cf3e43a5877226ab4c89bb6.tar.gz
nextcloud-server-35781ae45c517bb39cf3e43a5877226ab4c89bb6.zip
urldecode group principals in Cal- and CardDAV backend
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php
index 983220c6ba0..5742f97b701 100644
--- a/apps/dav/lib/CardDAV/CardDavBackend.php
+++ b/apps/dav/lib/CardDAV/CardDavBackend.php
@@ -162,6 +162,9 @@ class CardDavBackend implements BackendInterface, SyncSupport {
// query for shared calendars
$principals = $this->principalBackend->getGroupMembership($principalUriOriginal, true);
+ $principals = array_map(function($principal) {
+ return urldecode($principal);
+ }, $principals);
$principals[]= $principalUri;
$query = $this->db->getQueryBuilder();