fix webdav quota check for the root of the dav endpoint

This commit is contained in:
Robin Appelman 2015-05-12 14:02:27 +02:00
parent b11c0c533e
commit 11e1acd8ec

View file

@ -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);