From 7d0e1b1a848280eb4af98ecf14c39e2fd50020f6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 20 Sep 2024 14:01:18 +0200 Subject: Fix search with double-quote and parenthesis (#6818) Fix searches like `("test")` with a double-quote preceded by a parenthesis --- app/Models/BooleanSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/BooleanSearch.php') 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!-]|^)"(.*?)"/', '"\1"', $input); + $input = preg_replace('/(?<=[\s(!-]|^)"(.*?)"/', '"\1"', $input); if (!is_string($input)) { return; } -- cgit v1.2.3