diff options
author | Bruno Ais <brunoaiss@gmail.com> | 2013-08-01 10:11:08 +0100 |
---|---|---|
committer | Bruno Ais <brunoaiss@gmail.com> | 2013-08-01 10:11:08 +0100 |
commit | ea6938d3e518b636529238ab9ffd5b57b1a19241 (patch) | |
tree | 4d2e17e65e33d96421a1e56ab1ec3aebd113106f /phpBB/includes/mcp/mcp_queue.php | |
parent | f1bfbde3f5bdb9191057f28dd623dc2a3a530bf7 (diff) | |
download | forums-ea6938d3e518b636529238ab9ffd5b57b1a19241.tar forums-ea6938d3e518b636529238ab9ffd5b57b1a19241.tar.gz forums-ea6938d3e518b636529238ab9ffd5b57b1a19241.tar.bz2 forums-ea6938d3e518b636529238ab9ffd5b57b1a19241.tar.xz forums-ea6938d3e518b636529238ab9ffd5b57b1a19241.zip |
[ticket/11643] Use $parse_flags
sub-task of ticket PHPBB3-11635:
find and fix all bypasses of generate_text_for_*
PHPBB3-11643
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 2c95dc6a67..190fccab9a 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -132,7 +132,8 @@ class mcp_queue $post_unread = (isset($topic_tracking_info[$post_info['topic_id']]) && $post_info['post_time'] > $topic_tracking_info[$post_info['topic_id']]) ? true : false; // Process message, leave it uncensored - $message = generate_text_for_display($post_info['post_text'], $post_info['bbcode_uid'], $post_info['bbcode_bitfield'], ($post_info['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES, false); + $parse_flags = ($post_info['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES; + $message = generate_text_for_display($post_info['post_text'], $post_info['bbcode_uid'], $post_info['bbcode_bitfield'], $parse_flags, false); if ($post_info['post_attachment'] && $auth->acl_get('u_download') && $auth->acl_get('f_download', $post_info['forum_id'])) { |