From e9eca7fe297c8c9f87471791d607a2581cf5a807 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 21 May 2001 03:20:50 +0000 Subject: [PATCH] * Found my bug git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1383 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/smtp.php b/functions/smtp.php index 64db214a..52d554bb 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -100,7 +100,8 @@ $tmp = str_replace("\r\n", "\n", $tmp); $tmp = str_replace("\r", "\n", $tmp); $tmp = str_replace("\n", "\r\n", $tmp); - $tmp .= "\r\n"; + if (feof($fp) && substr($tmp, -2) != "\r\n") + $tmp .= "\r\n"; fputs($fp, $tmp); $length += strlen($tmp); } -- 2.25.1