Ignore:
Timestamp:
Nov 9, 2006 2:06:37 PM (7 years ago)
Author:
thomasb
Message:

Corrected template parsing and output encoding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/main.inc

    r354 r364  
    959959    else if ($mode=='remove') 
    960960      $str = strip_tags($str); 
    961        
    962     $out = strtr($str, $encode_arr); 
     961     
     962    // avoid douple quotation of & 
     963    $out = preg_replace('/&([a-z]{2,5});/', '&\\1;', strtr($str, $encode_arr)); 
    963964       
    964965    return $newlines ? nl2br($out) : $out; 
Note: See TracChangeset for help on using the changeset viewer.