mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-08 08:35:31 +02:00
fix highlight issue in 2.1
git-svn-id: file:///svn/phpbb/trunk@5034 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
40880e7705
commit
3c6c673476
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user