summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/Plugin.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-07-20 09:43:23 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-08-01 08:20:17 +0200
commitfc369dd86ea03f3bccb0e1af0686730a0dcb8b9f (patch)
tree62c80517f0882867aaabbc6f7295ec416f8145c2 /apps/dav/lib/CardDAV/Plugin.php
parentf57a3aa81b27cdc7fbf4595deca9022384aacc91 (diff)
downloadnextcloud-server-fc369dd86ea03f3bccb0e1af0686730a0dcb8b9f.tar.gz
nextcloud-server-fc369dd86ea03f3bccb0e1af0686730a0dcb8b9f.zip
[DAV] Fix URLUtil::splitPath usage
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/dav/lib/CardDAV/Plugin.php')
-rw-r--r--apps/dav/lib/CardDAV/Plugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/CardDAV/Plugin.php b/apps/dav/lib/CardDAV/Plugin.php
index b291a8360e1..61b9915b1ad 100644
--- a/apps/dav/lib/CardDAV/Plugin.php
+++ b/apps/dav/lib/CardDAV/Plugin.php
@@ -44,15 +44,15 @@ class Plugin extends \Sabre\CardDAV\Plugin {
protected function getAddressbookHomeForPrincipal($principal) {
if (strrpos($principal, 'principals/users', -strlen($principal)) !== false) {
- list(, $principalId) = URLUtil::splitPath($principal);
+ list(, $principalId) = \Sabre\Uri\split($principal);
return self::ADDRESSBOOK_ROOT . '/users/' . $principalId;
}
if (strrpos($principal, 'principals/groups', -strlen($principal)) !== false) {
- list(, $principalId) = URLUtil::splitPath($principal);
+ list(, $principalId) = \Sabre\Uri\split($principal);
return self::ADDRESSBOOK_ROOT . '/groups/' . $principalId;
}
if (strrpos($principal, 'principals/system', -strlen($principal)) !== false) {
- list(, $principalId) = URLUtil::splitPath($principal);
+ list(, $principalId) = \Sabre\Uri\split($principal);
return self::ADDRESSBOOK_ROOT . '/system/' . $principalId;
}