mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix dirname usage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
079a481673
commit
438bc818bb
1 changed files with 5 additions and 1 deletions
|
|
@ -155,7 +155,11 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
|
|||
}
|
||||
$path = $destinationNode->getPath();
|
||||
} else {
|
||||
$parentNode = $this->server->tree->getNodeForPath(dirname($destinationPath));
|
||||
$parent = dirname($destinationPath);
|
||||
if ($parent === '.') {
|
||||
$parent = '';
|
||||
}
|
||||
$parentNode = $this->server->tree->getNodeForPath($parent);
|
||||
if (!$parentNode instanceof Node) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue