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. --- tests/app/Models/SearchTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index 0b832737a..afec683d5 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -330,8 +330,8 @@ class SearchTest extends PHPUnit\Framework\TestCase { [ 'intitle:"\\(test\\)"', '(e.title LIKE ? )', - ['%\\(test\\)%'], - ] + ['%(test)%'], + ], ]; } } -- cgit v1.2.3