From 09c59abf8576f52b40e1787ef3c0204f795ab9f5 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 31 May 2011 16:17:23 +0000 Subject: Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax --- program/steps/mail/autocomplete.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/steps') diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 85f3cf352..145fb18a5 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -53,7 +53,7 @@ else if ($book_types && $search = get_input_value('_search', RCUBE_INPUT_GPC, tr foreach ($email_arr as $email) { $contact = format_email_recipient($email, $sql_arr['name']); // skip entries that don't match - if ($email_cnt > 1 && strpos($contact, $search) === false) { + if ($email_cnt > 1 && stripos($contact, $search) === false) { continue; } // when we've got more than one book, we need to skip duplicates -- cgit v1.2.3