瀏覽代碼

Really fixed the slash problem this time.

Luke Ehresman 25 年之前
父節點
當前提交
fc47dcf9d3
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      functions/smtp.php

+ 2 - 1
functions/smtp.php

@@ -89,7 +89,8 @@
       if ($reply_to != "")
          fputs($smtpConnection, "Reply-To: $reply_to\n");
 
-      $body = stripslashes($body);
+      str_replace("\\\"", "\"", $body);
+      str_replace("\\\'", "\'", $body);
       fputs($smtpConnection, "$body\n"); // send the body of the message
 
       fputs($smtpConnection, ".\n"); // end the DATA part