aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-07-03 15:11:34 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-07-03 15:11:34 +0000
commita9e44e4bdf635fb1c26330a8d1357c4397e9ae3f (patch)
treea7e7d88687b625774af7b3d90eacdec263f303fe /phpBB/viewtopic.php
parenta9fed2022c9f366f917a89e219bfca3883931bfd (diff)
downloadforums-a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f.tar
forums-a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f.tar.gz
forums-a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f.tar.bz2
forums-a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f.tar.xz
forums-a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f.zip
- checkin fixed viewtopic (just forgot to check it in, been applied to area51 after 2.0.16 release)
git-svn-id: file:///svn/phpbb/trunk@5168 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 9182333e72..22b6187e96 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1139,7 +1139,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
{
// This was shamelessly 'borrowed' from volker at multiartstudio dot de
// via php.net's annotated manual
- $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . str_replace('\\', '\\\\', $highlight_match) . ")\b#i', '<span class=\"posthilit\">\\\\1</span>', '\\0')", '>' . $message . '<'), 1, -1));
+ $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '<span class=\"posthilit\">\\\\1</span>', '\\0')", '>' . $message . '<'), 1, -1));
}
if ($row['enable_html'] && $auth->acl_get('f_html', $forum_id))