From 4ec0e7afce50f6733192abfd4c07f414218815a7 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Mon, 13 Nov 2006 03:00:04 -0500
Subject: [PATCH] Fixed strrpos problem in template parser
---
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 7f3771b..a5e5e85 100644
--- a/program/include/rcube_shared.inc
+++ b/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";
--
Gitblit v1.9.1