diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2022-06-02 18:29:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-02 18:29:13 +0300 |
commit | e15d678bac7ac0178d6b0b3dbf28ebb30c46c457 (patch) | |
tree | ee497d12ebf75179937f91de045b120b9874c210 /lib/private | |
parent | 7544eceefa2dd00de18005d16f53083dcb842909 (diff) | |
parent | ec47f342c49ed820ec7280e665916e850dcb5c7c (diff) |
Merge pull request #32707 from nextcloud/backport/32690/stable22
[stable22] Trim mount point before matching in encryption code
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Encryption/Util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php index dc878ba8fc1..bf89ef26f08 100644 --- a/lib/private/Encryption/Util.php +++ b/lib/private/Encryption/Util.php @@ -304,7 +304,7 @@ class Util { $storageService = \OC::$server->get(GlobalStoragesService::class); $storages = $storageService->getAllStorages(); foreach ($storages as $storage) { - if (strpos($path, '/files/' . $storage->getMountPoint()) === 0) { + if (strpos($path, '/files/' . ltrim($storage->getMountPoint(), '/')) === 0) { if ($this->isMountPointApplicableToUser($storage, $uid)) { return true; } |