diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-08-08 13:08:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 13:08:49 +0200 |
commit | 14bd6c144cbac23c161273b153da190d90851d79 (patch) | |
tree | 90a44f9ac0b40e160a7b94d547d951f83bef6dac /lib | |
parent | 556326cb4fc12fe6db888dd3af36827e591390d3 (diff) | |
parent | c408c3868c735130ab4f8431b556195aae824cbb (diff) | |
download | nextcloud-server-14bd6c144cbac23c161273b153da190d90851d79.tar.gz nextcloud-server-14bd6c144cbac23c161273b153da190d90851d79.zip |
Merge pull request #47119 from nextcloud/backport/47044/stable29
[stable29] fix(encryption): Fix mountpoint check to accept if several are found
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encryption.php | 2 |
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 e68e1f65048..bce4674caed 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -807,7 +807,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); |