diff options
| author | 2025-12-20 11:06:39 +0100 | |
|---|---|---|
| committer | 2025-12-20 11:06:39 +0100 | |
| commit | af1e5cb9bc0c81e36a095b70073f0d23cf4554a9 (patch) | |
| tree | b9a584b47cb2eda3a46d4ae034086cf48632e0c5 /app/Models/DatabaseDAOSQLite.php | |
| parent | f71636955fbb58546433d5b1593e1f977c051ea6 (diff) | |
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
Diffstat (limited to 'app/Models/DatabaseDAOSQLite.php')
| -rw-r--r-- | app/Models/DatabaseDAOSQLite.php | 5 |
1 files changed, 5 insertions, 0 deletions
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; + } } |
