浏览代码

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("\r\n", "\n", $body);
       $body = ereg_replace("\n", "\r\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) {
       if ($useSendmail) {
          $length = sendSendmail($t, $c, $b, $subject, $body, $more_headers);
          $length = sendSendmail($t, $c, $b, $subject, $body, $more_headers);