aboutsummaryrefslogtreecommitdiff
path: root/app/Models/DatabaseDAOSQLite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2026-01-10 19:14:26 +0100
committerGravatar GitHub <noreply@github.com> 2026-01-10 19:14:26 +0100
commitb0a5f063abcc021644ecaf4d5cefbd2c7dd276ec (patch)
tree25a102b6ce4648a4439cd7f0aa6474d9d075c1fd /app/Models/DatabaseDAOSQLite.php
parent6b46e70f5a7218943b5178939ed3335a96b22dfc (diff)
Fix tags ILIKE (#8425)
fix https://github.com/FreshRSS/FreshRSS/issues/8424 Regression from https://github.com/FreshRSS/FreshRSS/issues/8329
Diffstat (limited to 'app/Models/DatabaseDAOSQLite.php')
-rw-r--r--app/Models/DatabaseDAOSQLite.php4
1 files changed, 2 insertions, 2 deletions
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);
}
}