Skip to content

Commit f39de22

Browse files
authored
Merge pull request #63380 from nextcloud/backport/62986/stable33
[stable33] fix: allow file request upload when `part_file_in_storage=false`
2 parents 84cf742 + 4cddd41 commit f39de22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/private/Files/Storage/Wrapper/PermissionsMask.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function getPermissions(string $path): int {
6262

6363
public function rename(string $source, string $target): bool {
6464
//This is a rename of the transfer file to the original file
65-
if (dirname($source) === dirname($target) && strpos($source, '.ocTransferId') > 0) {
65+
$sourceDir = dirname($source);
66+
$targetDir = dirname($target);
67+
if (($sourceDir === $targetDir || $sourceDir === dirname($targetDir)) && strpos($source, '.ocTransferId') > 0) {
6668
return $this->checkMask(Constants::PERMISSION_CREATE) && parent::rename($source, $target);
6769
}
6870
return $this->checkMask(Constants::PERMISSION_UPDATE) && parent::rename($source, $target);

0 commit comments

Comments
 (0)