use getGetUnjailedRoot to determine if jailed search needs the path filter

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-08-23 16:27:53 +02:00 committed by backportbot[bot]
parent 09921e94f4
commit 9e5440abc3

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