diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-12 14:02:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-05-12 14:02:27 +0200 |
commit | 11e1acd8ec4016493764c4893fb7beadb4cef71b (patch) | |
tree | 43b867de1a76c06aca4851f56decbf907cfbba98 /lib/private/connector | |
parent | b11c0c533e8d447e9193cd618bf11023e6216863 (diff) | |
download | nextcloud-server-11e1acd8ec4016493764c4893fb7beadb4cef71b.tar.gz nextcloud-server-11e1acd8ec4016493764c4893fb7beadb4cef71b.zip |
fix webdav quota check for the root of the dav endpoint
Diffstat (limited to 'lib/private/connector')
-rw-r--r-- | lib/private/connector/sabre/quotaplugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
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); |