diff options
author | Jonas <jonas@freesources.org> | 2024-07-02 10:48:19 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-07-02 09:21:49 +0000 |
commit | a68994babc4c84fdaa5cc5332304ac6764249ee1 (patch) | |
tree | bf1060bb2806ab17d31711b15aaf1714b3637704 | |
parent | 8a1502f2191e9b3c8d2398c8a320805623c292a7 (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 5277299e9..7cdfeb892 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -878,7 +878,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; |