diff options
author | Jonas <jonas@freesources.org> | 2024-07-02 10:48:19 +0200 |
---|---|---|
committer | Jonas <jonas@freesources.org> | 2024-07-02 10:52:36 +0200 |
commit | 11a5a6d18aa38e811588480e0339319eaface5b0 (patch) | |
tree | 927360bbd29356c3413aaef402075e2f04a38bcc | |
parent | a79d7bd93859ed3c8c842b4411d618d8dafa2c08 (diff) |
fix(sharing): Only check path for being accessible when the storage is a object home
Forward-ported https://github.com/nextcloud/server/pull/24103
Signed-off-by: Jonas <jonas@freesources.org>
Signed-off-by: Jonas <jonas@freesources.org>
-rw-r--r-- | lib/Share/RoomShareProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 892508b4e..03e96c130 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -886,7 +886,7 @@ class RoomShareProvider implements IShareProvider { $pathSections = explode('/', $data['path'], 2); // FIXME: would not detect rare md5'd home storage case properly if ($pathSections[0] !== 'files' - && in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) { + && (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) { return false; } return true; |