X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fsmtp.php;h=b8969a11dc1a3c9ee93d289bb758e471cf5541d0;hb=eedcdd97a080acac8e0c58524a0f331ba61d24f3;hp=d63cea5bd3535eee50eaba82485727ff27f8cde7;hpb=f61de96662fb1e93329d4a78c9edeeafdf508975;p=squirrelmail.git diff --git a/functions/smtp.php b/functions/smtp.php index d63cea5b..b8969a11 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -586,14 +586,14 @@ } // In order to remove the problem of users not able to create - // messages with "." on a blank line, RFC821 has made provision - // in section 4.5.2 (Transparency). - $body = ereg_replace("\n\\.", "\n..", $body); - $body = ereg_replace("^\\.", "..", $body); + // messages with "." on a blank line, RFC821 has made provision + // in section 4.5.2 (Transparency). + $body = ereg_replace("\n\\.", "\n..", $body); + $body = ereg_replace("^\\.", "..", $body); // this is to catch all plain \n instances and - // replace them with \r\n. - $body = ereg_replace("\r\n", "\n", $body); + // replace them with \r\n. All newlines were converted + // into just \n inside the compose.php file. $body = ereg_replace("\n", "\r\n", $body); if ($useSendmail) {