mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-18 13:24:37 -04:00
Fix tags ILIKE (#8425)
fix https://github.com/FreshRSS/FreshRSS/issues/8424 Regression from https://github.com/FreshRSS/FreshRSS/issues/8329
This commit is contained in:
committed by
GitHub
parent
6b46e70f5a
commit
b0a5f063ab
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user