瀏覽代碼

Fix detecting deleted shares in object store

While using the object store, the shares, that are moved to trashbin were still detected as accessible and cause broken shares to be shown in file/folder listing.
tags/v12.0.0beta1
Andrius 7 年之前
父節點
當前提交
708b62f223
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      lib/private/Share20/DefaultShareProvider.php

+ 2
- 1
lib/private/Share20/DefaultShareProvider.php 查看文件

@@ -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;

Loading…
取消
儲存