Skip to content

Commit 6a8a259

Browse files
authored
Merge pull request #63381 from nextcloud/backport/62986/stable32
[stable32] fix: allow file request upload when `part_file_in_storage=false`
2 parents 17d0ffb + 0aaa20b commit 6a8a259

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) and parent::rename($source, $target);
6769
}
6870
return $this->checkMask(Constants::PERMISSION_UPDATE) and parent::rename($source, $target);

0 commit comments

Comments
 (0)