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

index 2dfd9fe2035d1dccd06515071553cff0867a9236..b944564c34d14770da7224b235535b1058125f6a 100644 (file)
@@ -1937,6 +1937,7 @@ function cleanAttributes2($htmlArray){
                 $value = kses_decode_entities($value);
                 $value = preg_replace('/(&#[0-9]+)(;?)/', "\\1;", $value);
                 $value = preg_replace('/(&#x[0-9a-fA-F]+)(;?)/', "\\1;", $value);
+                $value = str_replace('&#x03A;', ':', $value);
                 if ($value === $prevvalue) {
                     $arreach['value'] = $value;
                     break;