Fixed strrpos problem in template parser

release-0.6
thomascube 18 years ago
parent 8e20901e97
commit 4ec0e7afce

@ -212,12 +212,9 @@ class rcube_html_page
// 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";

Loading…
Cancel
Save