[Comoblog-commit] comoblog/batch comoblog_batch.php,1.7,1.8
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2005-10-09 00:31:48
|
Update of /cvsroot/comoblog/comoblog/batch In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31860 Modified Files: comoblog_batch.php Log Message: Filters should be run before cleanup so we can filter the raw post content Index: comoblog_batch.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/batch/comoblog_batch.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- comoblog_batch.php 5 Oct 2005 01:48:34 -0000 1.7 +++ comoblog_batch.php 9 Oct 2005 00:31:34 -0000 1.8 @@ -52,12 +52,6 @@ if (CFG_ALLOW_HTML == 'no') $post['post_mail_body'] = filter_html($post['post_mail_body']); - // clean up text and html - if ($post['post_ctype'] == 'text/plain') - $post['post_mail_body'] = clean_up_txt($post['post_mail_body'], true); - else - $post['post_mail_body'] = clean_up_html($post['post_mail_body'], true); - // apply pre filters global $POST_PRE_FILTERS; if (count($POST_PRE_FILTERS) > 0) { @@ -66,6 +60,12 @@ } } + // clean up text and html + if ($post['post_ctype'] == 'text/plain') + $post['post_mail_body'] = clean_up_txt($post['post_mail_body'], true); + else + $post['post_mail_body'] = clean_up_html($post['post_mail_body'], true); + // current timestamp $now = time(); |