diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-19 16:59:44 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-19 16:59:44 +0000 |
| commit | 7fab3bbdb5a26f57affeed51b8ba35c250f444b2 (patch) | |
| tree | 55ad8405920592c84c6b883d383effb834cddb29 /phpBB | |
| parent | a0165d67a331a5308584d164842148cd09fa00c8 (diff) | |
| download | forums-7fab3bbdb5a26f57affeed51b8ba35c250f444b2.tar forums-7fab3bbdb5a26f57affeed51b8ba35c250f444b2.tar.gz forums-7fab3bbdb5a26f57affeed51b8ba35c250f444b2.tar.bz2 forums-7fab3bbdb5a26f57affeed51b8ba35c250f444b2.tar.xz forums-7fab3bbdb5a26f57affeed51b8ba35c250f444b2.zip | |
Fix bug #494787, censor words in topic title for email notifications of replies
git-svn-id: file:///svn/phpbb/trunk@1634 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/posting.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 198eba2bd7..a7146090f8 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1342,6 +1342,12 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) { $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']; $protocol = ( !empty($HTTP_SERVER_VARS['HTTPS']) ) ? ( ( $HTTP_SERVER_VARS['HTTPS'] == "on" ) ? "https://" : "http://" ) : "http://"; @@ -1359,7 +1365,7 @@ if( ( $submit || $confirm || $mode == "delete" ) && !$error ) "EMAIL_SIG" => str_replace("<br />", "\n", "-- \n" . $board_config['board_email_sig']), "USERNAME" => $email_set[$i]['username'], "SITENAME" => $board_config['sitename'], - "TOPIC_TITLE" => $email_set[$i]['topic_title'], + "TOPIC_TITLE" => $topic_title, "U_TOPIC" => $protocol . $server_name . $path . "/viewtopic.$phpEx?" . POST_POST_URL . "=$new_post_id#$new_post_id", "U_STOP_WATCHING_TOPIC" => $protocol . $server_name . $path . "/viewtopic.$phpEx?" . POST_TOPIC_URL . "=$new_topic_id&unwatch=topic") |
