فهرست منبع

Reinstating fix for the "to" addresses. Hopefully won't need them for CC
and BCC.

Tyler Akins 24 سال پیش
والد
کامیت
a15a0caec8
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      functions/smtp.php

+ 2 - 5
functions/smtp.php

@@ -516,11 +516,8 @@
       $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);