summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-06-14 23:10:40 -0500
committerGitHub <noreply@github.com>2017-06-14 23:10:40 -0500
commitca3c69c8ae0fd7f0d13e87d7861c54e2950a2c09 (patch)
tree4ed63f89a9e8cb3940bbb67e3438a2272d007cb7 /apps/dav/lib
parentac565cecadc1760e128293e5be6955a9b1fc85e4 (diff)
parent35781ae45c517bb39cf3e43a5877226ab4c89bb6 (diff)
downloadnextcloud-server-ca3c69c8ae0fd7f0d13e87d7861c54e2950a2c09.tar.gz
nextcloud-server-ca3c69c8ae0fd7f0d13e87d7861c54e2950a2c09.zip
Merge pull request #5298 from nextcloud/bugfix/4885/calendar_shares_url_special_char_issue
urldecode group principals in Cal- and CardDAV backend
Diffstat (limited to 'apps/dav/lib')
-rw-r--r--apps/dav/lib/CalDAV/CalDavBackend.php3
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php3
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php
index ef3df8de83e..7fe18cd8656 100644
--- a/apps/dav/lib/CalDAV/CalDavBackend.php
+++ b/apps/dav/lib/CalDAV/CalDavBackend.php
@@ -276,6 +276,9 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
// query for shared calendars
$principals = $this->principalBackend->getGroupMembership($principalUriOriginal, true);
+ $principals = array_map(function($principal) {
+ return urldecode($principal);
+ }, $principals);
$principals[]= $principalUri;
$fields = array_values($this->propertyMap);
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();