[Comoblog-commit] modules/mod_comment_notify mod_comment_notify_comment_filter.php,1.4,1.5
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-12-16 00:37:57
|
Update of /cvsroot/comoblog/modules/mod_comment_notify In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32748 Modified Files: mod_comment_notify_comment_filter.php Log Message: 1361309 - Fixed up double-emailing and HTML corruption in the comment email Index: mod_comment_notify_comment_filter.php =================================================================== RCS file: /cvsroot/comoblog/modules/mod_comment_notify/mod_comment_notify_comment_filter.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- mod_comment_notify_comment_filter.php 13 Dec 2005 09:23:21 -0000 1.4 +++ mod_comment_notify_comment_filter.php 16 Dec 2005 00:37:48 -0000 1.5 @@ -6,15 +6,14 @@ $body .='Blog Comment Added To Post - ' . mod_comment_notify($comment['post_id']) ."\n"; $body .= "Post ID:" . $comment['post_id'] ."\n"; $body .= "Link: " .CFG_SITE_URL. "post.php?/". $comment['post_id'] ."\n"; -$body .= "From:" . $comment['comment_author'] . " - " . $comment['comment_author_email'] ."\n"; -$body .= "Comment:\n\n" . $comment['comment_text'] ."\n"; +$body .= "From: " . $comment['comment_author'] . " - " . $comment['comment_author_email'] ."\n"; +$body .= "Comment:\n\n" . filter_html($comment['comment_text']) ."\n"; $recipients = CFG_COMMENT_NOTIFY_TO; $headerstring = "MIME-Version: 1.0\r\n". "Content-type: text/plain; charset=iso-8859-1\r\n". "From: ".CFG_COMMENT_NOTIFY_FROM_NAME."<".CFG_COMMENT_NOTIFY_FROM.">\r\n". - "To: ".CFG_COMMENT_NOTIFY_TO_NAME." <".$recipients.">\r\n". "Date: ".date("r")."\r\n". "Subject: ".$subject."\r\n"; @@ -27,4 +26,4 @@ // Create the mail object using the Mail::factory method #$mail_object =& Mail::factory('sendmail', $params);$mail_object->send($recipients, $headers, $body); -?> \ No newline at end of file +?> |