aboutsummaryrefslogtreecommitdiff
path: root/app/Models/BooleanSearch.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-09-20 14:01:18 +0200
committerGravatar GitHub <noreply@github.com> 2024-09-20 14:01:18 +0200
commit7d0e1b1a848280eb4af98ecf14c39e2fd50020f6 (patch)
treed58fade3c7676219f30a1e073161488406d7af37 /app/Models/BooleanSearch.php
parent469a42d9c3dedaf2817ba6ffec2f0945f83e63c0 (diff)
Fix search with double-quote and parenthesis (#6818)
Fix searches like `("test")` with a double-quote preceded by a parenthesis
Diffstat (limited to 'app/Models/BooleanSearch.php')
-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 9e9dec2a2..b8e3af5e0 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -27,7 +27,7 @@ class FreshRSS_BooleanSearch {
if (!is_string($input)) {
return;
}
- $input = preg_replace('/(?<=[\s!-]|^)&quot;(.*?)&quot;/', '"\1"', $input);
+ $input = preg_replace('/(?<=[\s(!-]|^)&quot;(.*?)&quot;/', '"\1"', $input);
if (!is_string($input)) {
return;
}