summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV/Activity
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-12-15 16:59:46 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2017-01-02 15:02:18 +0100
commitdb3c918adb1aab5e493e2574505b4d87a112081c (patch)
treebeeae15a559f90c5d93c5d57fbe0eed69590e4ad /apps/dav/lib/CalDAV/Activity
parent3c34b8577c7f773bd697512b734062913940a3fd (diff)
downloadnextcloud-server-db3c918adb1aab5e493e2574505b4d87a112081c.tar.gz
nextcloud-server-db3c918adb1aab5e493e2574505b4d87a112081c.zip
Fix legacy caldav endpoints
* CaldavBackend is now endpoint aware (use old style principals on old endpoint and new onces on new). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/CalDAV/Activity')
-rw-r--r--apps/dav/lib/CalDAV/Activity/Backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/CalDAV/Activity/Backend.php b/apps/dav/lib/CalDAV/Activity/Backend.php
index 953fdcea832..f8cc82407fd 100644
--- a/apps/dav/lib/CalDAV/Activity/Backend.php
+++ b/apps/dav/lib/CalDAV/Activity/Backend.php
@@ -103,7 +103,7 @@ class Backend {
}
$principal = explode('/', $calendarData['principaluri']);
- $owner = $principal[2];
+ $owner = array_pop($principal);
$currentUser = $this->userSession->getUser();
if ($currentUser instanceof IUser) {
@@ -369,7 +369,7 @@ class Backend {
}
$principal = explode('/', $calendarData['principaluri']);
- $owner = $principal[2];
+ $owner = array_pop($principal);
$currentUser = $this->userSession->getUser();
if ($currentUser instanceof IUser) {