diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-08-08 13:09:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 13:09:55 +0200 |
commit | d94fa30f429eae7e6229c0777293699ad6c44f93 (patch) | |
tree | 7bb059e1f3ff19831289871f172a50e30576c852 | |
parent | 6fae82a68e599644004262e7b1d3cb5c831ac886 (diff) | |
parent | a59176b7dc5ee64a3febf1b1a8630ae322464f5c (diff) | |
download | nextcloud-server-d94fa30f429eae7e6229c0777293699ad6c44f93.tar.gz nextcloud-server-d94fa30f429eae7e6229c0777293699ad6c44f93.zip |
Merge pull request #47118 from nextcloud/backport/47044/stable28
[stable28] fix(encryption): Fix mountpoint check to accept if several are found
-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 7ce4338256f..499ba1f317f 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); |