|
From: Paul S. O. <ps...@us...> - 2001-12-19 16:59:47
|
Update of /cvsroot/phpbb/phpBB2 In directory usw-pr-cvs1:/tmp/cvs-serv13300 Modified Files: posting.php Log Message: Fix bug #494787, censor words in topic title for email notifications of replies Index: posting.php =================================================================== RCS file: /cvsroot/phpbb/phpBB2/posting.php,v retrieving revision 1.129 retrieving revision 1.130 diff -C2 -r1.129 -r1.130 *** posting.php 2001/12/19 14:12:51 1.129 --- posting.php 2001/12/19 16:59:44 1.130 *************** *** 1343,1346 **** --- 1343,1352 ---- $path = ''; } + + $orig_word = array(); + $replacement_word = array(); + obtain_word_list($orig_word, $replacement_word); + + $topic_title = preg_replace($orig_word, $replacement_word, $email_set[0]['topic_title']); $server_name = ( isset($HTTP_SERVER_VARS['HTTP_HOST']) ) ? $HTTP_SERVER_VARS['HTTP_HOST'] : $HTTP_SERVER_VARS['SERVER_NAME']; *************** *** 1360,1364 **** "USERNAME" => $email_set[$i]['username'], "SITENAME" => $board_config['sitename'], ! "TOPIC_TITLE" => $email_set[$i]['topic_title'], "U_TOPIC" => $protocol . $server_name . $path . "/viewtopic.$phpEx?" . POST_POST_URL . "=$new_post_id#$new_post_id", --- 1366,1370 ---- "USERNAME" => $email_set[$i]['username'], "SITENAME" => $board_config['sitename'], ! "TOPIC_TITLE" => $topic_title, "U_TOPIC" => $protocol . $server_name . $path . "/viewtopic.$phpEx?" . POST_POST_URL . "=$new_post_id#$new_post_id", |