Reinstating fix for the "to" addresses. Hopefully won't need them for CC
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jan 2001 18:45:19 +0000 (18:45 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jan 2001 18:45:19 +0000 (18:45 +0000)
and BCC.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1018 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/smtp.php

index 8579e9a..5652465 100644 (file)
       $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.
-      // I don't think they are needed anymore
-      //$t = ereg_replace("[\n|\r]", "", $t);
-      //$c = ereg_replace("[\n|\r]", "", $c);
-      //$b = ereg_replace("[\n|\r]", "", $b);
+      // Make sure that $t does not contain newlines.
+      $t = ereg_replace("[\n|\r]", "", $t);
 
       if ($useSendmail) {
          $length = sendSendmail($t, $c, $b, $subject, $body, $more_headers);