From d1ae0f1944c1efb7e6b4644686a63a152fb4d32a Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 21 Aug 2002 14:05:40 +0000 Subject: [PATCH] fix for dissapearing carriage returns in case of draft messages. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3387 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index 80814544..bf628898 100644 --- a/src/compose.php +++ b/src/compose.php @@ -522,7 +522,7 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se $cnt = count($body_ary) ; $body = ''; for ($i=0; $i < $cnt; $i++) { - if (!ereg("^[>\\s]*$", $body_ary[$i])) { + if (!ereg("^[>\\s]*$", $body_ary[$i]) || !$body_ary[$i]) { sqWordWrap($body_ary[$i], $editor_size ); $body .= $body_ary[$i] . "\n"; } -- 2.25.1