]> git.mjollnir.org Git - moodle.git/commitdiff
A problem with brackets was reported, but I couldn't duplicate it.
authormoodler <moodler>
Thu, 20 May 2004 03:37:57 +0000 (03:37 +0000)
committermoodler <moodler>
Thu, 20 May 2004 03:37:57 +0000 (03:37 +0000)
Just in case, I've added an escape for them.

mod/glossary/filter.php

index c7e569818c600c258863dfcc05d49247075231fd..53e4c7b5119f150385240ddc99664ff6835c001b 100644 (file)
 
         $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.")";