Merge pull request #28566 from nextcloud/jail-search-root-unjailed

use getGetUnjailedRoot to determine if jailed search needs the path filter
pull/28574/head
Vincent Petry 2021-08-24 08:19:47 +07:00 committed by GitHub
commit 6702c2b356
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

@ -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(),