From a3f4e4d3464c6de4d1610452c56ea9e8fb632aa7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 May 2008 03:58:13 +0100 Subject: [PATCH] filter prefs: make search case insensitive --- modules/pref-filters.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/pref-filters.php b/modules/pref-filters.php index ac71c96a..9d39258a 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -232,8 +232,8 @@   - + onclick=\"javascript:updateFilterList()\" value=\"".__('Search')."\"> +

"; @@ -253,10 +253,10 @@ if ($filter_search) { $filter_search = db_escape_string($filter_search); $filter_search_query = "( - ttrss_filter_actions.description LIKE '%$filter_search%' OR - reg_exp LIKE '%$filter_search%' OR - ttrss_feeds.title LIKE '%$filter_search%' OR - ttrss_filter_types.description LIKE '%$filter_search%') AND"; + UPPER(ttrss_filter_actions.description) LIKE UPPER('%$filter_search%') OR + UPPER(reg_exp) LIKE UPPER('%$filter_search%') OR + UPPER(ttrss_feeds.title) LIKE UPPER('%$filter_search%') OR + UPPER(ttrss_filter_types.description) LIKE UPPER('%$filter_search%')) AND"; } else { $filter_search_query = ""; } -- 2.39.2