aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Cache/Wrapper/CacheJail.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-11-02 12:44:51 +0100
committerRobin Appelman <robin@icewind.nl>2022-11-02 12:44:51 +0100
commitf76b4473ee8ecb90181b300c648fabef76106cd8 (patch)
tree86dc803dd4bcc8e93adbee96b1fc8bd4ff78fa71 /lib/private/Files/Cache/Wrapper/CacheJail.php
parent91392c08d6d69d74431588a9f38cbf15ef41c937 (diff)
downloadnextcloud-server-f76b4473ee8ecb90181b300c648fabef76106cd8.tar.gz
nextcloud-server-f76b4473ee8ecb90181b300c648fabef76106cd8.zip
escape path prefix when doing cache jail search
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Cache/Wrapper/CacheJail.php')
-rw-r--r--lib/private/Files/Cache/Wrapper/CacheJail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php
index c0a6acd118b..628ca3ee0e0 100644
--- a/lib/private/Files/Cache/Wrapper/CacheJail.php
+++ b/lib/private/Files/Cache/Wrapper/CacheJail.php
@@ -317,7 +317,7 @@ class CacheJail extends CacheWrapper {
new SearchBinaryOperator(ISearchBinaryOperator::OPERATOR_OR,
[
new SearchComparison(ISearchComparison::COMPARE_EQUAL, 'path', $this->getGetUnjailedRoot()),
- new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', $this->getGetUnjailedRoot() . '/%'),
+ new SearchComparison(ISearchComparison::COMPARE_LIKE_CASE_SENSITIVE, 'path', SearchComparison::escapeLikeParameter($this->getGetUnjailedRoot()) . '/%'),
],
)
]