Changeset 3052 in subversion


Ignore:
Timestamp:
Oct 22, 2009 2:37:00 PM (4 years ago)
Author:
alec
Message:
  • fix rc_utf8_clean() on Windows (#1486232)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r3042 r3052  
    44- Added server-side e-mail address validation with 'email_dns_check' option (#1485857) 
    55- Fix login page loading into an iframe when session expires (#1485952) 
    6 - added option 'force_https_port' in 'force_https' plugin (#1486091) 
     6- Allow setting port number in 'force_https' option (#1486091) 
    77- Option 'force_https' replaced by 'force_https' plugin 
    88- Fix IE issue with non-UTF-8 characters in AJAX response (#1486159) 
  • trunk/roundcubemail/program/include/rcube_shared.inc

    r3036 r3052  
    600600  } 
    601601   
    602   if (!is_string($input)) 
     602  if (!is_string($input) || $input == '') 
    603603    return $input; 
    604604   
    605   // iconv is 10x faster 
    606   if (function_exists('iconv')) 
    607     return iconv('UTF8', 'UTF8//IGNORE', $input); 
     605  // iconv/mbstring are much faster (especially with long strings) 
     606  if (function_exists('mb_convert_encoding') && ($res = mb_convert_encoding($input, 'UTF8', 'UTF8'))) 
     607    return $res; 
     608 
     609  if (function_exists('iconv') && ($res = iconv('UTF8', 'UTF8//IGNORE', $input))) 
     610    return $res; 
    608611 
    609612  $regexp = '/^('. 
Note: See TracChangeset for help on using the changeset viewer.