diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-08 21:02:54 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-02-08 21:02:54 +0000 |
commit | 44562cfc446b746722125541fa504dbf7d6db69f (patch) | |
tree | b831f8ccc1a993f7439cdf127872237d3d9b0635 | |
parent | cec8dba611671cccf6ef9d48343e8d4ef0e138ce (diff) | |
download | forums-44562cfc446b746722125541fa504dbf7d6db69f.tar forums-44562cfc446b746722125541fa504dbf7d6db69f.tar.gz forums-44562cfc446b746722125541fa504dbf7d6db69f.tar.bz2 forums-44562cfc446b746722125541fa504dbf7d6db69f.tar.xz forums-44562cfc446b746722125541fa504dbf7d6db69f.zip |
Or this one even ... this is not easy ...
git-svn-id: file:///svn/phpbb/trunk@2068 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/viewtopic.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 6aa6914265..4cb16b03bd 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -458,8 +458,8 @@ if( isset($HTTP_GET_VARS['highlight']) ) { if( trim($words[$i]) != "" ) { - $highlight_match[] = "#\b(" . str_replace("\*", ".*?", $words[$i]) . ")(?!(.*?".">.*?<)|(.*?\">))\b#i"; - $highlight_replace[] = '<span style="color:#' . $theme['fontcolor3'] . '"><b>\1</b></span>'; + $highlight_match[] = "#\b(\/?)(" . str_replace("\*", ".*?", $words[$i]) . ")(?!(.*?".">.*?<)|(.*?\">)|((1)?".">))\b#i"; + $highlight_replace[] = '<span style="color:#' . $theme['fontcolor3'] . '"><b>\2</b></span>'; } } |