mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/11639] Added an useful comment.
sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11639
This commit is contained in:
parent
f96f2a9e23
commit
dde9a1fb27
1 changed files with 2 additions and 1 deletions
|
@ -1104,9 +1104,10 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
|
||||||
|
|
||||||
$decoded_message = bbcode_nl2br($decoded_message);
|
$decoded_message = bbcode_nl2br($decoded_message);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parse_flags = ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0);
|
$parse_flags = ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0);
|
||||||
$parse_flags |= ($row['enable_smilies'] ? OPTION_FLAG_SMILIES : 0);
|
$parse_flags |= ($row['enable_smilies'] ? OPTION_FLAG_SMILIES : 0);
|
||||||
|
// Do not censor text because it has already been censored before
|
||||||
$message = generate_text_for_display($message, $row['bbcode_uid'], $row['bbcode_bitfield'], $parse_flags , false);
|
$message = generate_text_for_display($message, $row['bbcode_uid'], $row['bbcode_bitfield'], $parse_flags , false);
|
||||||
|
|
||||||
unset($parse_flags);
|
unset($parse_flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue