From 3d95459b19a1c80fdeb2c55a552ecdcc66da009d Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 31 May 2011 16:17:23 +0000 Subject: Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax git-svn-id: https://svn.roundcube.net/trunk@4819 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/CHANGELOG | 1 + roundcubemail/program/include/main.inc | 18 +++++++++--------- roundcubemail/program/steps/mail/autocomplete.inc | 2 +- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 4bb90ee76..1f492c9cc 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Case-insensitive matching in autocompletion (#1487933) - Added option to force spellchecking before sending a message (#1485458) - Fix handling of "<" character in contact data, search fields and folder names (#1487864) - Fix saving "<" character in identity name and organization fields (#1487864) diff --git a/roundcubemail/program/include/main.inc b/roundcubemail/program/include/main.inc index 98b8bcb46..1ded90270 100644 --- a/roundcubemail/program/include/main.inc +++ b/roundcubemail/program/include/main.inc @@ -1090,28 +1090,28 @@ function format_date($date, $format=NULL) // an alternative would be to convert the date() format string to fit with strftime() $out = ''; for($i=0; $i 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