Skip to content

A free, self-hostable news aggregator…

Fix regex for references to user queries (#6936)

Alexandre Alapetite6c58b90518c3
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php
index 749dbdfa5..ede705416 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -35,9 +35,9 @@ class FreshRSS_BooleanSearch {
$this->raw_input = $input;
if ($level === 0) {
+ $input = self::escapeRegexParentheses($input);
$input = $this->parseUserQueryNames($input, $allowUserQueries);
$input = $this->parseUserQueryIds($input, $allowUserQueries);
- $input = self::escapeRegexParentheses($input);
$input = trim($input);
}