Skip to content

Commit

Permalink
Merge pull request #47118 from nextcloud/backport/47044/stable28
Browse files Browse the repository at this point in the history
[stable28] fix(encryption): Fix mountpoint check to accept if several are found
  • Loading branch information
AndyScherzinger authored Aug 8, 2024
2 parents 6fae82a + a59176b commit d94fa30
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 d94fa30

Please sign in to comment.