Skip to content

Commit 86da501

Browse files
authored
Merge pull request #24325 from nextcloud/backport/24103/stable20
[stable20] Only check path for being accessible when the storage is a object home
2 parents ebf046b + 866e273 commit 86da501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Share20/DefaultShareProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ private function isAccessibleResult($data) {
824824
$pathSections = explode('/', $data['path'], 2);
825825
// FIXME: would not detect rare md5'd home storage case properly
826826
if ($pathSections[0] !== 'files'
827-
&& in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
827+
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
828828
return false;
829829
}
830830
return true;

0 commit comments

Comments
 (0)