Forráskód Böngészése

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

Tyler Akins 24 éve
szülő
commit
a15a0caec8
1 módosított fájl, 2 hozzáadás és 5 törlés
  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);