Skip to content

Commit

Permalink
Merge pull request #47119 from nextcloud/backport/47044/stable29
Browse files Browse the repository at this point in the history
[stable29] fix(encryption): Fix mountpoint check to accept if several are found
  • Loading branch information
AndyScherzinger authored Aug 8, 2024
2 parents 556326c + c408c38 commit 14bd6c1
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 @@ -807,7 +807,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 14bd6c1

Please sign in to comment.