فهرست منبع

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 != "")
       if ($reply_to != "")
          fputs($smtpConnection, "Reply-To: $reply_to\n");
          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, "$body\n"); // send the body of the message
 
 
       fputs($smtpConnection, ".\n"); // end the DATA part
       fputs($smtpConnection, ".\n"); // end the DATA part