Skip to content

Commit

Permalink
Merge pull request #47044 from nextcloud/fix/accept-several-mounts-in…
Browse files Browse the repository at this point in the history
…-encryption

fix(encryption): Fix mountpoint check to accept if several are found
  • Loading branch information
AndyScherzinger authored Aug 7, 2024
2 parents 495f454 + 277c2cf commit 609fa7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ private function copyBetweenStorage(
// first copy the keys that we reuse the existing file key on the target location
// and don't create a new one which would break versions for example.
$mount = $this->mountManager->findByStorageId($sourceStorage->getId());
if (count($mount) === 1) {
if (count($mount) >= 1) {
$mountPoint = $mount[0]->getMountPoint();
$source = $mountPoint . '/' . $sourceInternalPath;
$target = $this->getFullPath($targetInternalPath);
Expand Down

0 comments on commit 609fa7d

Please sign in to comment.