Changeset 674a0fb in github


Ignore:
Timestamp:
Nov 9, 2006 2:06:37 PM (7 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
e4bbb24
Parents:
03ac213
Message:

Corrected template parsing and output encoding

Location:
program/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • program/include/main.inc

    r6b47de3 r674a0fb  
    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('/&amp;([a-z]{2,5});/', '&\\1;', strtr($str, $encode_arr)); 
    963964       
    964965    return $newlines ? nl2br($out) : $out; 
  • program/include/rcube_shared.inc

    ra0109c4 r674a0fb  
    216216       ($fpos = strrpos($output_lc, '</html>'))) 
    217217      { 
    218       $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos,strlen($output)); 
     218      $fpos -= 8; 
     219      $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos); 
    219220      } 
    220221    else 
Note: See TracChangeset for help on using the changeset viewer.