aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-24 22:34:29 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-24 22:34:29 +0200
commit6c58b90518c30a165db1ee8ea34e0f3d12c6c898 (patch)
treedcc9acb47942f39a23c2a09915226d34f8c4d2c6
parent7a5ce0fe20d63746b7f5b435ba5eef0a9b7db2d6 (diff)
Fix regex for references to user queries (#6936)
https://github.com/FreshRSS/FreshRSS/pull/6926#issuecomment-2432712495
-rw-r--r--app/Models/BooleanSearch.php2
1 files changed, 1 insertions, 1 deletions
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);
}