aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-12-18 16:42:21 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-12-18 16:42:21 +0000
commit3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e (patch)
tree74c00405529937449a5684678038860b89362e51 /phpBB/viewtopic.php
parent40880e770571bdfed28e6a763cba71f63e6f9b1b (diff)
downloadforums-3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e.tar
forums-3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e.tar.gz
forums-3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e.tar.bz2
forums-3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e.tar.xz
forums-3c6c673476a90a22c0dc1c5f99b2c47b25a1be0e.zip
fix highlight issue in 2.1
git-svn-id: file:///svn/phpbb/trunk@5034 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php6
1 files 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