thomascube
2006-11-13 4ec0e7afce50f6733192abfd4c07f414218815a7
Fixed strrpos problem in template parser

1 files modified
7 ■■■■ changed files
program/include/rcube_shared.inc 7 ●●●● patch | view | raw | blame | history
program/include/rcube_shared.inc
@@ -212,12 +212,9 @@
  
    // find and add page footer
    $output_lc = strtolower($output);
    if(($fpos = strrpos($output_lc, '</body>')) ||
       ($fpos = strrpos($output_lc, '</html>')))
      {
      $fpos -= 8;
    if(($fpos = strrstr($output_lc, '</body>')) ||
       ($fpos = strrstr($output_lc, '</html>')))
      $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos);
      }
    else
      $output .= "\n$__page_footer";