MDL-10276 Text cleaning trouble

This commit is contained in:
skodak 2007-06-27 11:58:33 +00:00
parent 7308cb6949
commit a33c44c4b9

View 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