Merge pull request #13582 from nextcloud/backport/13573/stable15

[stable15] Principals can be principal/user/<name> or principal/<name> from lega…
This commit is contained in:
Morris Jobke 2019-01-14 15:24:04 +01:00 committed by GitHub
commit 3376e87122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,6 @@ class RemoveClassifiedEventActivity implements IRepairStep {
protected function getPrincipal(string $principalUri): string {
$uri = explode('/', $principalUri);
return $uri[2];
return array_pop($uri);
}
}