- 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
This commit is contained in:
Meik Sievertsen 2005-07-03 15:11:34 +00:00
parent a9fed2022c
commit a9e44e4bdf

View file

@ -1139,7 +1139,7 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
{ {
// This was shamelessly 'borrowed' from volker at multiartstudio dot de // This was shamelessly 'borrowed' from volker at multiartstudio dot de
// via php.net's annotated manual // 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)) if ($row['enable_html'] && $auth->acl_get('f_html', $forum_id))