]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10276 Text cleaning trouble
authorskodak <skodak>
Wed, 27 Jun 2007 11:58:33 +0000 (11:58 +0000)
committerskodak <skodak>
Wed, 27 Jun 2007 11:58:33 +0000 (11:58 +0000)
lib/weblib.php

index 5c14d54a8e011d117f7b9336175084f745f0bebc..b41a903f865e143ab9ab6aef2ff7892468714f73 100644 (file)
@@ -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