소스 검색

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