diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php index 1fccd3dfe80..c7e569818c6 100644 --- a/mod/glossary/filter.php +++ b/mod/glossary/filter.php @@ -170,7 +170,11 @@ $text = str_replace($final,array_keys($final),$text); + $list_of_words_cp = str_replace('{', '\{', $list_of_words_cp); + $list_of_words_cp = str_replace('+', '\+', $list_of_words_cp); + $list_of_words_cp = "(".$list_of_words_cp.")"; + if ( $casesensitive ) { $text = ereg_replace("$list_of_words_cp", "$href_tag_begin"."\\1"."$href_tag_end", $text); } else {