From a9e44e4bdf635fb1c26330a8d1357c4397e9ae3f Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 3 Jul 2005 15:11:34 +0000 Subject: [PATCH] - 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 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); + $message = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . str_replace('\\', '\\\\', addslashes($highlight_match)) . ")\b#i', '\\\\1', '\\0')", '>' . $message . '<'), 1, -1)); } if ($row['enable_html'] && $auth->acl_get('f_html', $forum_id))