From: skodak <skodak>
Date: Sun, 23 Sep 2007 12:20:29 +0000 (+0000)
Subject: MDL-11413 improved text cleaning (problem reported by Andreas Nolden)
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4b533b2791f0e401f96f959dfab39bd3a16c0156;p=moodle.git

MDL-11413 improved text cleaning (problem reported by Andreas Nolden)
---

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('&#x03A;', ':', $text);
 
             /// Remove tags that are not allowed
                 $text = strip_tags($text, $ALLOWED_TAGS);