]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11413 improved text cleaning (problem reported by Andreas Nolden)
authorskodak <skodak>
Sun, 23 Sep 2007 12:20:29 +0000 (12:20 +0000)
committerskodak <skodak>
Sun, 23 Sep 2007 12:20:29 +0000 (12:20 +0000)
lib/weblib.php

index 79671aa4a781f124646a777c6182d2134f331243..2dfd9fe2035d1dccd06515071553cff0867a9236 100644 (file)
@@ -1837,6 +1837,7 @@ function clean_text($text, $format=FORMAT_MOODLE) {
             /// Fix non standard entity notations
                 $text = preg_replace('/(&#[0-9]+)(;?)/', "\\1;", $text);
                 $text = preg_replace('/(&#x[0-9a-fA-F]+)(;?)/', "\\1;", $text);
+                $text = str_replace('&#x03A;', ':', $text);
 
             /// Remove tags that are not allowed
                 $text = strip_tags($text, $ALLOWED_TAGS);