Changeset 4354 in subversion


Ignore:
Timestamp:
Dec 20, 2010 9:17:32 AM (2 years ago)
Author:
alec
Message:
  • small performance improvement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/func.inc

    r4328 r4354  
    736736  for ($n=0, $cnt=count($a_lines); $n < $cnt; $n++) { 
    737737    if ($a_lines[$n][0] == '>' && preg_match('/^(>+\s*)+/', $a_lines[$n], $regs)) { 
    738       $q = strlen(preg_replace('/\s/', '', $regs[0])); 
     738      $q = strlen(rtrim($regs[0])); 
    739739      $a_lines[$n] = substr($a_lines[$n], strlen($regs[0])); 
    740740 
Note: See TracChangeset for help on using the changeset viewer.