From 3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 18 Dec 2004 16:42:21 +0000 Subject: [PATCH] fix highlight issue in 2.1 git-svn-id: file:///svn/phpbb/trunk@5034 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/viewtopic.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 4698e9df40..96d84aee44 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -34,7 +34,7 @@ $sort_key = request_var('sk', 't'); $sort_dir = request_var('sd', 'a'); $update = request_var('update', false); -$hilit_words = urldecode(request_var('hilit', '')); +$hilit_words = request_var('hilit', ''); // Do we have a topic or post id? if (!$topic_id && !$post_id) @@ -335,11 +335,11 @@ if ($hilit_words) { if (trim($word)) { - $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('\*', '\w*?', preg_quote($word, '#')); + $highlight_match .= (($highlight_match != '') ? '|' : '') . str_replace('\*', '\w*?', preg_quote(urlencode($word), '#')); } } - $highlight = htmlspecialchars(urlencode($hilit_words)); + $highlight = urlencode($hilit_words); } // General Viewtopic URL for return links