Merge pull request #13584 from nextcloud/backport/13573/stable13

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

View File

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