From af1e5cb9bc0c81e36a095b70073f0d23cf4554a9 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 20 Dec 2025 11:06:39 +0100 Subject: More uniform SQL search and PHP search (#8329) * More uniform SQL search and PHP search The behaviour depends though on the database. Improve https://github.com/FreshRSS/FreshRSS/discussions/8265#discussioncomment-15278980 * Try to use transliterator_transliterate function instead --- app/Models/DatabaseDAOSQLite.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/DatabaseDAOSQLite.php') diff --git a/app/Models/DatabaseDAOSQLite.php b/app/Models/DatabaseDAOSQLite.php index 13c73a2d7..9a4842c39 100644 --- a/app/Models/DatabaseDAOSQLite.php +++ b/app/Models/DatabaseDAOSQLite.php @@ -99,4 +99,9 @@ class FreshRSS_DatabaseDAOSQLite extends FreshRSS_DatabaseDAO { } return $ok; } + + #[\Override] + public static function strilike(string $haystack, string $needle): bool { + return stripos($haystack, $needle) !== false; + } } -- cgit v1.2.3