Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-10276 Text cleaning trouble; backported from HEAD

  • Loading branch information...
commit 9da6b302691952e40bbeb7a5349510099524ac6a 1 parent 5046d23
skodak authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/weblib.php
View
3  lib/weblib.php
@@ -1682,6 +1682,9 @@ 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 script events
$text = eregi_replace("([^a-z])language([[:space:]]*)=", "\\1Xlanguage=", $text);
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", "\\1Xon\\2=", $text);
Please sign in to comment.
Something went wrong with that request. Please try again.