diff options
author | thomascube <thomas@roundcube.net> | 2006-11-13 08:00:04 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-11-13 08:00:04 +0000 |
commit | 4ec0e7afce50f6733192abfd4c07f414218815a7 (patch) | |
tree | effbcc19d8aaf789bc457f20fdc25ad94eeaa954 /program/include/rcube_shared.inc | |
parent | 8e20901e971df8b53bc5a333506d73c6a53dd416 (diff) |
Fixed strrpos problem in template parser
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r-- | program/include/rcube_shared.inc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc index 7f3771b08..a5e5e8598 100644 --- a/program/include/rcube_shared.inc +++ b/program/include/rcube_shared.inc @@ -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"; |