From 9aab5e54568f6bc4071afd3ad0c5570abd98fa5c Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Thu, 03 Nov 2011 13:51:54 -0400
Subject: [PATCH] - Fix redundant line break in flowed format (#1488146)

---
 CHANGELOG                   |    1 +
 program/steps/mail/func.inc |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index fa4b0a5..6bc7233 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix redundant line break in flowed format (#1488146)
 - TinyMCE:
   - updated to 3.4.6
   - security issue: removed moxieplayer (embedding flv and mp4 is not supported anymore)
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 69724c5..39c25f1 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -766,7 +766,7 @@
 
           // previous line is flowed?
           if (isset($body[$last]) && $body[$n]
-            && $last != $last_sig
+            && $last !== $last_sig
             && $body[$last][strlen($body[$last])-1] == ' '
           ) {
             $body[$last] .= $body[$n];

--
Gitblit v1.9.1