From 4b533b2791f0e401f96f959dfab39bd3a16c0156 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 23 Sep 2007 12:20:29 +0000 Subject: [PATCH] MDL-11413 improved text cleaning (problem reported by Andreas Nolden) --- lib/weblib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/weblib.php b/lib/weblib.php index 79671aa4a7..2dfd9fe203 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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(':', ':', $text); /// Remove tags that are not allowed $text = strip_tags($text, $ALLOWED_TAGS); -- 2.39.5