From 2e1d45a88d2cfd439f4f9e7d92ca9c8cbdb39466 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 5 Sep 2023 17:33:38 +0200 Subject: Fix parenthesis escaping bug (#5633) fix https://github.com/FreshRSS/FreshRSS/issues/5632 In the SQL search, parentheses should not be escaped. Escaped parenthesis in the SQL search were tolerated by PostgreSQL but not by SQLite. --- 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 5cfcd9342..0a50464de 100644 --- a/app/Models/BooleanSearch.php +++ b/app/Models/BooleanSearch.php @@ -233,7 +233,7 @@ class FreshRSS_BooleanSearch { private function parseOrSegments(string $input): void { $input = trim($input); - if ($input == '') { + if ($input === '') { return; } $splits = preg_split('/\b(OR)\b/i', $input, -1, PREG_SPLIT_DELIM_CAPTURE) ?: []; -- cgit v1.2.3