From 09c59abf8576f52b40e1787ef3c0204f795ab9f5 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Tue, 31 May 2011 12:17:23 -0400
Subject: [PATCH] Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax

---
 program/steps/mail/autocomplete.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc
index 85f3cf3..145fb18 100644
--- a/program/steps/mail/autocomplete.inc
+++ b/program/steps/mail/autocomplete.inc
@@ -53,7 +53,7 @@
         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

--
Gitblit v1.9.1