summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/QuotaPlugin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
index 70a83ccaa68..7c6bf64602e 100644
--- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
@@ -131,7 +131,11 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
$destinationNode = $this->server->tree->getNodeForPath($destination);
$path = $destinationNode->getPath();
} else {
- $parentNode = $this->server->tree->getNodeForPath(dirname($destination));
+ $parent = dirname($destination);
+ if ($parent === '.') {
+ $parent = '';
+ }
+ $parentNode = $this->server->tree->getNodeForPath($parent);
$path = $parentNode->getPath();
}