diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-15 18:11:15 +0100 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-11-17 13:22:50 +0000 |
commit | feafa63afbe84dc2ca4483e02412337a61ff99e9 (patch) | |
tree | f413957362840369c24379546df4f326043685bd /apps/dav | |
parent | 9150082eb7b74fbf91b5dac5433551272200bce8 (diff) | |
download | nextcloud-server-feafa63afbe84dc2ca4483e02412337a61ff99e9.tar.gz nextcloud-server-feafa63afbe84dc2ca4483e02412337a61ff99e9.zip |
Apply the same fix as on beforeCopy on beforeMove
Let’s be safe
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 6 |
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(); } |