summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-11-13 08:00:04 +0000
committerthomascube <thomas@roundcube.net>2006-11-13 08:00:04 +0000
commit4ec0e7afce50f6733192abfd4c07f414218815a7 (patch)
treeeffbcc19d8aaf789bc457f20fdc25ad94eeaa954 /program/include/rcube_shared.inc
parent8e20901e971df8b53bc5a333506d73c6a53dd416 (diff)
Fixed strrpos problem in template parser
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc7
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";