aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorAndy Scherzinger <info@andy-scherzinger.de>2024-08-07 20:58:19 +0200
committerGitHub <noreply@github.com>2024-08-07 20:58:19 +0200
commit609fa7d5db69c7724ad42615e2146bef4f714c76 (patch)
tree7e4a7fb34d1efb6a91028287d46f73c787c00b2a /lib/private
parent495f454b6f04cc6ee7ce1410dd9a9f1926a0b1ee (diff)
parent277c2cf5d18835231077eb09303e1bd3760c702c (diff)
downloadnextcloud-server-609fa7d5db69c7724ad42615e2146bef4f714c76.tar.gz
nextcloud-server-609fa7d5db69c7724ad42615e2146bef4f714c76.zip
Merge pull request #47044 from nextcloud/fix/accept-several-mounts-in-encryption
fix(encryption): Fix mountpoint check to accept if several are found
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/Storage/Wrapper/Encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php
index b8893d32c36..7d45c356bfe 100644
--- a/lib/private/Files/Storage/Wrapper/Encryption.php
+++ b/lib/private/Files/Storage/Wrapper/Encryption.php
@@ -777,7 +777,7 @@ class Encryption extends Wrapper {
// 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);