From a33c44c4b98173d984c636d3c30ca6e83f8b614f Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 27 Jun 2007 11:58:33 +0000 Subject: [PATCH] MDL-10276 Text cleaning trouble --- lib/weblib.php | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5