From: Andrew Dolgov Date: Sat, 17 May 2008 02:58:13 +0000 (+0100) Subject: filter prefs: make search case insensitive X-Git-Tag: 1.2.23-final~106 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a3f4e4d3464c6de4d1610452c56ea9e8fb632aa7;p=tt-rss.git filter prefs: make search case insensitive --- 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 = ""; }