summaryrefslogtreecommitdiffstats
path: root/lib/private/connector
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-12 14:02:27 +0200
committerRobin Appelman <icewind@owncloud.com>2015-05-12 14:02:27 +0200
commit11e1acd8ec4016493764c4893fb7beadb4cef71b (patch)
tree43b867de1a76c06aca4851f56decbf907cfbba98 /lib/private/connector
parentb11c0c533e8d447e9193cd618bf11023e6216863 (diff)
downloadnextcloud-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.php3
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);