Merge pull request #3783 from andrius-kulbis/master

Fix deleted objectstore shares
This commit is contained in:
Roeland Jago Douma 2017-03-14 15:14:39 +01:00 committed by GitHub
commit 3c2312fb09
1 changed files with 2 additions and 1 deletions

View File

@ -642,7 +642,8 @@ class DefaultShareProvider implements IShareProvider {
// exclude shares leading to trashbin on home storages
$pathSections = explode('/', $data['path'], 2);
// FIXME: would not detect rare md5'd home storage case properly
if ($pathSections[0] !== 'files' && explode(':', $data['storage_string_id'], 2)[0] === 'home') {
if ($pathSections[0] !== 'files'
&& in_array(explode(':', $data['storage_string_id'], 2)[0], array('home', 'object'))) {
return false;
}
return true;