From: skodak Date: Wed, 27 Jun 2007 11:58:33 +0000 (+0000) Subject: MDL-10276 Text cleaning trouble X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a33c44c4b98173d984c636d3c30ca6e83f8b614f;p=moodle.git MDL-10276 Text cleaning trouble --- diff --git a/lib/weblib.php b/lib/weblib.php index 5c14d54a8e..b41a903f86 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1843,6 +1843,10 @@ function clean_text($text, $format=FORMAT_MOODLE) { /// Clean up embedded scripts and , using kses $text = cleanAttributes($text); + + /// Again remove tags that are not allowed + $text = strip_tags($text, $ALLOWED_TAGS); + } /// Remove potential script events - some extra protection for undiscovered bugs in our code