From 11e1acd8ec4016493764c4893fb7beadb4cef71b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 12 May 2015 14:02:27 +0200 Subject: fix webdav quota check for the root of the dav endpoint --- lib/private/connector/sabre/quotaplugin.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/private/connector/sabre/quotaplugin.php') diff --git a/lib/private/connector/sabre/quotaplugin.php b/lib/private/connector/sabre/quotaplugin.php index 51eab1bae6e..22b687b3508 100644 --- a/lib/private/connector/sabre/quotaplugin.php +++ b/lib/private/connector/sabre/quotaplugin.php @@ -89,6 +89,9 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin { $uri = '/' . $uri; } list($parentUri, $newName) = \Sabre\HTTP\URLUtil::splitPath($uri); + if(is_null($parentUri)) { + $parentUri = ''; + } $req = $this->server->httpRequest; if ($req->getHeader('OC-Chunked')) { $info = \OC_FileChunking::decodeName($newName); -- cgit v1.2.3