Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix dirname usage
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and come-nc committed Nov 17, 2022
commit 9150082eb7b74fbf91b5dac5433551272200bce8
6 changes: 5 additions & 1 deletion apps/dav/lib/Connector/Sabre/QuotaPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ public function beforeCopy(string $sourcePath, string $destinationPath): bool {
}
$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;
}
Expand Down