Merge pull request #28583 from nextcloud/backport/28566/stable22

[stable22] use getGetUnjailedRoot to determine if jailed search needs the path filter
This commit is contained in:
Lukas Reschke 2021-08-25 13:21:41 +02:00 committed by GitHub
commit 34b5d979ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -306,7 +306,7 @@ class CacheJail extends CacheWrapper {
}
public function getQueryFilterForStorage(): ISearchOperator {
if ($this->root !== '' && $this->root !== '/') {
if ($this->getGetUnjailedRoot() !== '' && $this->getGetUnjailedRoot() !== '/') {
return new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_AND,
[
$this->getCache()->getQueryFilterForStorage(),