[Pkg-owncloud-commits] [owncloud] 59/123: fix webdav quota check for the root of the dav endpoint

David Prévot taffit at moszumanska.debian.org
Tue May 19 23:55:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 11e1acd8ec4016493764c4893fb7beadb4cef71b
Author: Robin Appelman <icewind at owncloud.com>
Date:   Tue May 12 14:02:27 2015 +0200

    fix webdav quota check for the root of the dav endpoint
---
 lib/private/connector/sabre/quotaplugin.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/private/connector/sabre/quotaplugin.php b/lib/private/connector/sabre/quotaplugin.php
index 51eab1b..22b687b 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list