From 9e5440abc30a82345d779f4468feeb6129502903 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 23 Aug 2021 16:27:53 +0200 Subject: use getGetUnjailedRoot to determine if jailed search needs the path filter Signed-off-by: Robin Appelman --- lib/private/Files/Cache/Wrapper/CacheJail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 2dff76333ad..d0fb43c10be 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -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(), -- cgit v1.2.3