Changeset 367 in subversion


Ignore:
Timestamp:
Nov 13, 2006 3:00:04 AM (7 years ago)
Author:
thomasb
Message:

Fixed strrpos problem in template parser

File:
1 edited

Legend:

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

    r364 r367  
    213213    // find and add page footer 
    214214    $output_lc = strtolower($output); 
    215     if(($fpos = strrpos($output_lc, '</body>')) || 
    216        ($fpos = strrpos($output_lc, '</html>'))) 
    217       { 
    218       $fpos -= 8; 
     215    if(($fpos = strrstr($output_lc, '</body>')) || 
     216       ($fpos = strrstr($output_lc, '</html>'))) 
    219217      $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos); 
    220       } 
    221218    else 
    222219      $output .= "\n$__page_footer"; 
Note: See TracChangeset for help on using the changeset viewer.