Просмотр исходного кода

Merge pull request #12284 from nextcloud/fix/1020/search_shared_external

Properly search the root of a shared external storage
tags/v15.0.0beta1
Morris Jobke 5 лет назад
Родитель
Сommit
add35c7f31
Аккаунт пользователя с таким Email не найден
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      lib/private/Files/Cache/Wrapper/CacheJail.php

+ 1
- 1
lib/private/Files/Cache/Wrapper/CacheJail.php Просмотреть файл

@@ -94,7 +94,7 @@ class CacheJail extends CacheWrapper {

protected function filterCacheEntry($entry) {
$rootLength = strlen($this->getRoot()) + 1;
return ($entry['path'] === $this->getRoot()) or (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/');
return $rootLength === 1 || ($entry['path'] === $this->getRoot()) || (substr($entry['path'], 0, $rootLength) === $this->getRoot() . '/');
}

/**

Загрузка…
Отмена
Сохранить