From 1544f456211bfdafd09cb873847d99b94002b5c5 Mon Sep 17 00:00:00 2001 From: David M Date: Sat, 4 Nov 2006 13:37:22 +0000 Subject: trimmed the highlight regex git-svn-id: file:///svn/phpbb/trunk@6550 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/search.php') diff --git a/phpBB/search.php b/phpBB/search.php index 5418f34c6b..b16a92384e 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -825,7 +825,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) if ($hilit) { // post highlighting - $message = preg_replace('#(?!(?:<(?:s(?:cript|tyle))?)[^<]*)(?]*(?:)#is', '$1', $message); + $message = preg_replace('#(?!<.*)(?]*(?:)#is', '$1', $message); } $tpl_ary = array( -- cgit v1.2.1