fix for dissapearing carriage returns in case of draft messages.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Aug 2002 14:05:40 +0000 (14:05 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 21 Aug 2002 14:05:40 +0000 (14:05 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3387 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 8081454419159b8d1390d7d0be6778163fe05dd1..bf628898b8e3656b01d2fe460d9c97b497e95692 100644 (file)
@@ -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";
              }