summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-01-14 11:21:41 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2019-01-14 13:21:35 +0000
commit3f2d77faf23ad6199c225034092c6767ab794516 (patch)
tree41ff3fa9ae07707141e4c6d210b15b02a55774d2 /apps
parentdcd1dbb60994cad47d8c9d01688fd54bd6e2ee9d (diff)
downloadnextcloud-server-3f2d77faf23ad6199c225034092c6767ab794516.tar.gz
nextcloud-server-3f2d77faf23ad6199c225034092c6767ab794516.zip
Principals can be principal/user/<name> or principal/<name> from legacy installs
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Migration/RemoveClassifiedEventActivity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php
index 0b6a4b1144c..dfd581294a4 100644
--- a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php
+++ b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php
@@ -126,6 +126,6 @@ class RemoveClassifiedEventActivity implements IRepairStep {
protected function getPrincipal($principalUri) {
$uri = explode('/', $principalUri);
- return $uri[2];
+ return array_pop($uri);
}
}