Merge pull request #12376 from nextcloud/backport/12284/stable13
[13] Properly search the root of a shared external storage
This commit is contained in:
commit
b89996483d
|
@ -93,7 +93,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() . '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue