Pārlūkot izejas kodu

Really fixed the slash problem this time.

Luke Ehresman 25 gadi atpakaļ
vecāks
revīzija
fc47dcf9d3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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