Changeset 4819 in subversion


Ignore:
Timestamp:
May 31, 2011 12:17:23 PM (2 years ago)
Author:
thomasb
Message:

Case-insensitive matching in autocompletion (#1487933); replace old string offset syntax

Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4816 r4819  
    22=========================== 
    33 
     4- Case-insensitive matching in autocompletion (#1487933) 
    45- Added option to force spellchecking before sending a message (#1485458) 
    56- Fix handling of "<" character in contact data, search fields and folder names (#1487864) 
  • trunk/roundcubemail/program/include/main.inc

    r4812 r4819  
    10911091  $out = ''; 
    10921092  for($i=0; $i<strlen($format); $i++) { 
    1093     if ($format{$i}=='\\')  // skip escape chars 
     1093    if ($format[$i]=='\\')  // skip escape chars 
    10941094      continue; 
    10951095 
    10961096    // write char "as-is" 
    1097     if ($format{$i}==' ' || $format{$i-1}=='\\') 
    1098       $out .= $format{$i}; 
     1097    if ($format[$i]==' ' || $format{$i-1}=='\\') 
     1098      $out .= $format[$i]; 
    10991099    // weekday (short) 
    1100     else if ($format{$i}=='D') 
     1100    else if ($format[$i]=='D') 
    11011101      $out .= rcube_label(strtolower(date('D', $timestamp))); 
    11021102    // weekday long 
    1103     else if ($format{$i}=='l') 
     1103    else if ($format[$i]=='l') 
    11041104      $out .= rcube_label(strtolower(date('l', $timestamp))); 
    11051105    // month name (short) 
    1106     else if ($format{$i}=='M') 
     1106    else if ($format[$i]=='M') 
    11071107      $out .= rcube_label(strtolower(date('M', $timestamp))); 
    11081108    // month name (long) 
    1109     else if ($format{$i}=='F') 
     1109    else if ($format[$i]=='F') 
    11101110      $out .= rcube_label('long'.strtolower(date('M', $timestamp))); 
    1111     else if ($format{$i}=='x') 
     1111    else if ($format[$i]=='x') 
    11121112      $out .= strftime('%x %X', $timestamp); 
    11131113    else 
    1114       $out .= date($format{$i}, $timestamp); 
     1114      $out .= date($format[$i], $timestamp); 
    11151115  } 
    11161116 
  • trunk/roundcubemail/program/steps/mail/autocomplete.inc

    r4625 r4819  
    5454          $contact = format_email_recipient($email, $sql_arr['name']); 
    5555          // skip entries that don't match 
    56           if ($email_cnt > 1 && strpos($contact, $search) === false) { 
     56          if ($email_cnt > 1 && stripos($contact, $search) === false) { 
    5757            continue; 
    5858          } 
Note: See TracChangeset for help on using the changeset viewer.