ソースを参照

Not having the \r\n caused lots of problems for lots of people.

Luke Ehresman 23 年 前
コミット
696e945118
1 ファイル変更3 行追加3 行削除
  1. 3 3
      functions/smtp.php

+ 3 - 3
functions/smtp.php

@@ -278,9 +278,9 @@ function write822Header ($fp, $t, $c, $b, $subject, $more_headers) {
             $received_from .= " (proxying for $HTTP_X_FORWARDED_FOR)";
             $received_from .= " (proxying for $HTTP_X_FORWARDED_FOR)";
         }            
         }            
         
         
-        $header  = "Received: from $received_from\n";
-        $header .= "        (SquirrelMail authenticated user $username)\n";
-        $header .= "        by $SERVER_NAME with HTTP;\n";
+        $header  = "Received: from $received_from\r\n";
+        $header .= "        (SquirrelMail authenticated user $username)\r\n";
+        $header .= "        by $SERVER_NAME with HTTP;\r\n";
         $header .= "        $date\r\n";
         $header .= "        $date\r\n";
         
         
         /* Insert the rest of the header fields */
         /* Insert the rest of the header fields */