Alexandre Alapetite
2026-01-10 19:14:26 +01:00
committed by GitHub
parent 6b46e70f5a
commit b0a5f063ab
4 changed files with 21 additions and 18 deletions

View File

@@ -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);
}
}