From d04d202234b0ba1e65b1c581acf0cbe715120dd7 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Wed, 22 Nov 2006 06:49:30 -0500
Subject: [PATCH] Remove newlines from mail headers (#1484031)

---
 program/include/rcube_shared.inc |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 11af482..a5e5e85 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -212,11 +212,9 @@
   
     // find and add page footer
     $output_lc = strtolower($output);
-    if(($fpos = strrpos($output_lc, '</body>')) ||
-       ($fpos = strrpos($output_lc, '</html>')))
-      {
-      $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos,strlen($output));
-      }
+    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