diff --git a/wp-content/plugins/google-hilite.php b/wp-content/plugins/google-hilite.php index 038d9376ab..b179159808 100644 --- a/wp-content/plugins/google-hilite.php +++ b/wp-content/plugins/google-hilite.php @@ -104,6 +104,7 @@ function hilite($text) { $query_terms = get_search_query_terms($engine); foreach ($query_terms as $term) { if (!empty($term) && $term != ' ') { + $term = preg_quote($term, '/'); if (!preg_match('/<.+>/',$text)) { $text = preg_replace('/(\b'.$term.'\b)/i','$1',$text); } else {