Hopefully this fixes finally the '.' problem on single lines.
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Oct 2002 10:11:19 +0000 (10:11 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 8 Oct 2002 10:11:19 +0000 (10:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3809 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/deliver/Deliver_SendMail.class.php

index 92094d0..15138c5 100644 (file)
@@ -16,9 +16,7 @@ class Deliver_SendMail extends Deliver {
 
     function preWriteToStream(&$s) {
        if ($s) {
 
     function preWriteToStream(&$s) {
        if ($s) {
-          if ($s{0} == '.')   $s = '.' . $s;
-         $s = str_replace("\n.","\n..",$s);
-          $s = str_replace("\r\n", "\n", $s);
+         $s = str_replace(".\n",".\r\n",str_replace("\r\n", "\n", $s));
        }
     }
     
        }
     }