diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-11-19 22:37:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 22:37:28 +0100 |
commit | c2510ecae97045b557c75be43bed15ad886cac60 (patch) | |
tree | 6e8fcc0ef6f13433df440c7098bf356431e61845 /lib/private/Share20/DefaultShareProvider.php | |
parent | 650ffc587fce28c7d6d3bac287c1bff8a8f5dd24 (diff) | |
parent | d665981447eb9e09665611b2968cdc9c7cbf4963 (diff) | |
download | nextcloud-server-c2510ecae97045b557c75be43bed15ad886cac60.tar.gz nextcloud-server-c2510ecae97045b557c75be43bed15ad886cac60.zip |
Merge pull request #24103 from nextcloud/bugfix/noid/groupfolder-share-object-storage
Only check path for being accessible when the storage is a object home
Diffstat (limited to 'lib/private/Share20/DefaultShareProvider.php')
-rw-r--r-- | lib/private/Share20/DefaultShareProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index b4ac3b3b84d..ec183cee1a3 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -824,7 +824,7 @@ class DefaultShareProvider 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; |