To fix this problem manually locate the html_hilight function in inc/html.php (around line 282) and replace it completely with the following two functions:
/**
* Highlights searchqueries in HTML code
*
* @author Andreas Gohr <
andi@splitbrain.org>
* @author Harry Fuecks <
hfuecks@gmail.com>
*/
function html_hilight($html,$query){
//split at common delimiters
$queries = preg_split ('/[\\s\\'"\\\\\\\\`()\\]\\[?:!\\.{};,#+*<>]+/',$query,-1,PREG_SPLIT_NO_EMPTY);
foreach ($queries as $q){
$q = preg_quote($q,'/');
$html = preg_replace_callback("/((<[^>]*)|$q)/i",'html_hilight_callback',$html);
}
return $html;
}
/**
* Callback used by html_hilight()
*
* @author Harry Fuecks <
hfuecks@gmail.com>
*/
function html_hilight_callback($m) {
$hlight = unslash($m[0]);
if ( !isset($m[2])) {
$hlight = '<span class="search_hit">'.$hlight.'</span>';
}
return $hlight;
}
An updated package of release 2005-09-22 will be available shortly.