mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11654] generate_text_for_display on mcp/mcp_warn.php
sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11654
This commit is contained in:
parent
b5651c0289
commit
16b4116165
1 changed files with 1 additions and 13 deletions
|
@ -289,19 +289,7 @@ class mcp_warn
|
||||||
|
|
||||||
// We want to make the message available here as a reminder
|
// We want to make the message available here as a reminder
|
||||||
// Parse the message and subject
|
// Parse the message and subject
|
||||||
$message = censor_text($user_row['post_text']);
|
$message = generate_text_for_display($message, $user_row['bbcode_uid'], $user_row['bbcode_bitfield'], ($user_row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES, true);
|
||||||
|
|
||||||
// Second parse bbcode here
|
|
||||||
if ($user_row['bbcode_bitfield'])
|
|
||||||
{
|
|
||||||
include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
|
|
||||||
|
|
||||||
$bbcode = new bbcode($user_row['bbcode_bitfield']);
|
|
||||||
$bbcode->bbcode_second_pass($message, $user_row['bbcode_uid'], $user_row['bbcode_bitfield']);
|
|
||||||
}
|
|
||||||
|
|
||||||
$message = bbcode_nl2br($message);
|
|
||||||
$message = smiley_text($message);
|
|
||||||
|
|
||||||
// Generate the appropriate user information for the user we are looking at
|
// Generate the appropriate user information for the user we are looking at
|
||||||
if (!function_exists('phpbb_get_user_avatar'))
|
if (!function_exists('phpbb_get_user_avatar'))
|
||||||
|
|
Loading…
Add table
Reference in a new issue