Changeset 4215 in subversion


Ignore:
Timestamp:
Nov 11, 2010 8:39:10 AM (3 years ago)
Author:
alec
Message:
  • Fix displaying of text/plain messages containing HTML entities
File:
1 edited

Legend:

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

    r4178 r4215  
    557557    else if ($mode=='remove') 
    558558      $str = strip_tags($str); 
    559      
     559 
     560    $out = strtr($str, $encode_arr); 
     561 
    560562    // avoid douple quotation of & 
    561     $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', strtr($str, $encode_arr)); 
    562        
     563    // commented out, because this breaks displaying of text with entity strings 
     564    // in text messages. 
     565    //$out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', $out); 
     566 
    563567    return $newlines ? nl2br($out) : $out; 
    564568    } 
Note: See TracChangeset for help on using the changeset viewer.