From: stekkel Date: Tue, 8 Oct 2002 10:11:19 +0000 (+0000) Subject: Hopefully this fixes finally the '.' problem on single lines. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d0c4bd888eac46a4878f7e293ee5f148120d6efe;p=squirrelmail.git Hopefully this fixes finally the '.' problem on single lines. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3809 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/deliver/Deliver_SendMail.class.php b/class/deliver/Deliver_SendMail.class.php index 92094d03..15138c59 100644 --- a/class/deliver/Deliver_SendMail.class.php +++ b/class/deliver/Deliver_SendMail.class.php @@ -16,9 +16,7 @@ class Deliver_SendMail extends Deliver { 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)); } }