From 3a8c414dd71d1ac6ed753a94858e6819e7e5a986 Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 30 Jan 2001 21:10:39 +0000 Subject: [PATCH] Hopefully fixed the "unbalanced <" error git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@991 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/smtp.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions/smtp.php b/functions/smtp.php index b2bfef6e..2695a6ef 100644 --- a/functions/smtp.php +++ b/functions/smtp.php @@ -515,6 +515,11 @@ // replace them with \r\n. $body = ereg_replace("\r\n", "\n", $body); $body = ereg_replace("\n", "\r\n", $body); + + // Make sure that $t, $c, and $b do not contain newlines. + $t = ereg_replace("[\n|\r]", "", $t); + $c = ereg_replace("[\n|\r]", "", $c); + $b = ereg_replace("[\n|\r]", "", $b); if ($useSendmail) { $length = sendSendmail($t, $c, $b, $subject, $body, $more_headers); -- 2.25.1