Переглянути джерело

Fix regex for references to user queries (#6936)

https://github.com/FreshRSS/FreshRSS/pull/6926#issuecomment-2432712495
Alexandre Alapetite 1 рік тому
батько
коміт
6c58b90518
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/Models/BooleanSearch.php

+ 1 - 1
app/Models/BooleanSearch.php

@@ -35,9 +35,9 @@ class FreshRSS_BooleanSearch {
 		$this->raw_input = $input;
 		$this->raw_input = $input;
 
 
 		if ($level === 0) {
 		if ($level === 0) {
+			$input = self::escapeRegexParentheses($input);
 			$input = $this->parseUserQueryNames($input, $allowUserQueries);
 			$input = $this->parseUserQueryNames($input, $allowUserQueries);
 			$input = $this->parseUserQueryIds($input, $allowUserQueries);
 			$input = $this->parseUserQueryIds($input, $allowUserQueries);
-			$input = self::escapeRegexParentheses($input);
 			$input = trim($input);
 			$input = trim($input);
 		}
 		}