diff options
author | Joas Schilling <coding@schilljs.com> | 2019-01-14 11:21:41 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-01-14 11:21:41 +0100 |
commit | 4149d428d39f0d85474eb42c451fe822cd50f7c0 (patch) | |
tree | c5eea522aab6cbc3a4652cbecf73a44ddaa5d680 | |
parent | 27737ecc9fa5cb5b01c33f92bfa12a45219f2205 (diff) | |
download | nextcloud-server-4149d428d39f0d85474eb42c451fe822cd50f7c0.tar.gz nextcloud-server-4149d428d39f0d85474eb42c451fe822cd50f7c0.zip |
Principals can be principal/user/<name> or principal/<name> from legacy installs
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/dav/lib/Migration/RemoveClassifiedEventActivity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php index ad840d8100e..1829f57237a 100644 --- a/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php +++ b/apps/dav/lib/Migration/RemoveClassifiedEventActivity.php @@ -127,6 +127,6 @@ class RemoveClassifiedEventActivity implements IRepairStep { protected function getPrincipal(string $principalUri): string { $uri = explode('/', $principalUri); - return $uri[2]; + return array_pop($uri); } } |