From: moodler Date: Thu, 20 May 2004 03:37:57 +0000 (+0000) Subject: A problem with brackets was reported, but I couldn't duplicate it. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ae6f861d20e943980c04b43045d354f72c40bffd;p=moodle.git A problem with brackets was reported, but I couldn't duplicate it. Just in case, I've added an escape for them. --- diff --git a/mod/glossary/filter.php b/mod/glossary/filter.php index c7e569818c..53e4c7b511 100644 --- a/mod/glossary/filter.php +++ b/mod/glossary/filter.php @@ -172,6 +172,7 @@ $list_of_words_cp = str_replace('{', '\{', $list_of_words_cp); $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.")";