aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorBruno Ais <brunoaiss@gmail.com>2013-07-13 14:35:50 +0100
committerBruno Ais <brunoaiss@gmail.com>2013-07-13 16:57:00 +0100
commit713a2ba573ab49d2add2522392b1f91ca3065dea (patch)
treeca9b6704a6b44a0d773207ca3d020f2de93f35d2 /phpBB
parenta58ccdabf30cad5b0373c266fc69368c65cee1a1 (diff)
downloadforums-713a2ba573ab49d2add2522392b1f91ca3065dea.tar
forums-713a2ba573ab49d2add2522392b1f91ca3065dea.tar.gz
forums-713a2ba573ab49d2add2522392b1f91ca3065dea.tar.bz2
forums-713a2ba573ab49d2add2522392b1f91ca3065dea.tar.xz
forums-713a2ba573ab49d2add2522392b1f91ca3065dea.zip
[ticket/11638] generate_text_for_display on viewtopic.php
lines: 1403-1417 sub-task of ticket PHPBB3-11635: find and fix all bypasses of generate_text_for_* PHPBB3-11638
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 34586b1491..9274539ab4 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1385,16 +1385,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
}
// Parse the message and subject
- $message = censor_text($row['post_text']);
-
- // Second parse bbcode here
- if ($row['bbcode_bitfield'])
- {
- $bbcode->bbcode_second_pass($message, $row['bbcode_uid'], $row['bbcode_bitfield']);
- }
-
- $message = bbcode_nl2br($message);
- $message = smiley_text($message);
+ $message = generate_text_for_display($message, $row['bbcode_uid'], $row['bbcode_bitfield'], ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0) | OPTION_FLAG_SMILIES, true);
if (!empty($attachments[$row['post_id']]))
{