From b0a5f063abcc021644ecaf4d5cefbd2c7dd276ec Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 10 Jan 2026 19:14:26 +0100 Subject: Fix tags ILIKE (#8425) fix https://github.com/FreshRSS/FreshRSS/issues/8424 Regression from https://github.com/FreshRSS/FreshRSS/issues/8329 --- app/Models/DatabaseDAOSQLite.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/DatabaseDAOSQLite.php') diff --git a/app/Models/DatabaseDAOSQLite.php b/app/Models/DatabaseDAOSQLite.php index 9a4842c39..661c669dc 100644 --- a/app/Models/DatabaseDAOSQLite.php +++ b/app/Models/DatabaseDAOSQLite.php @@ -101,7 +101,7 @@ class FreshRSS_DatabaseDAOSQLite extends FreshRSS_DatabaseDAO { } #[\Override] - public static function strilike(string $haystack, string $needle): bool { - return stripos($haystack, $needle) !== false; + public static function strilike(string $haystack, string $needle, bool $contains = false): bool { + return $contains ? (stripos($haystack, $needle) !== false) : (strcasecmp($haystack, $needle) === 0); } } -- cgit v1.2.3