mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Word censor on quoting a PM in reply [Bug #405]
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5520 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7ce72693df
commit
91a14a3d9a
1 changed files with 5 additions and 0 deletions
|
@ -1507,7 +1507,11 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
|
redirect(append_sid("privmsg.$phpEx?folder=$folder", true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$orig_word = $replacement_word = array();
|
||||||
|
obtain_word_list($orig_word, $replace_word);
|
||||||
|
|
||||||
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
|
$privmsg_subject = ( ( !preg_match('/^Re:/', $privmsg['privmsgs_subject']) ) ? 'Re: ' : '' ) . $privmsg['privmsgs_subject'];
|
||||||
|
$privmsg_subject = preg_replace($orig_word, $replacement_word, $privmsg_subject);
|
||||||
|
|
||||||
$to_username = $privmsg['username'];
|
$to_username = $privmsg['username'];
|
||||||
$to_userid = $privmsg['user_id'];
|
$to_userid = $privmsg['user_id'];
|
||||||
|
@ -1520,6 +1524,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||||
$privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message);
|
$privmsg_message = preg_replace("/\:(([a-z0-9]:)?)$privmsg_bbcode_uid/si", '', $privmsg_message);
|
||||||
$privmsg_message = str_replace('<br />', "\n", $privmsg_message);
|
$privmsg_message = str_replace('<br />', "\n", $privmsg_message);
|
||||||
$privmsg_message = preg_replace('#</textarea>#si', '</textarea>', $privmsg_message);
|
$privmsg_message = preg_replace('#</textarea>#si', '</textarea>', $privmsg_message);
|
||||||
|
$privmsg_message = preg_replace($orig_word, $replacement_word, $privmsg_message);
|
||||||
|
|
||||||
$msg_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']);
|
$msg_date = create_date($board_config['default_dateformat'], $privmsg['privmsgs_date'], $board_config['board_timezone']);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue