Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed clean_text() SC#76

  • Loading branch information...
commit 52b38b1ae57940dd70ee06b035ab4b3b7a93aae3 1 parent d8a0992
skodak authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/weblib.php
6 lib/weblib.php
View
@@ -793,13 +793,13 @@ function clean_text($text, $format=FORMAT_MOODLE) {
/// Remove tags that are not allowed
$text = strip_tags($text, $ALLOWED_TAGS);
+ /// Clean up embedded scripts and , using kses
+ $text = cleanAttributes($text);
+
/// Remove script events
$text = eregi_replace("([^a-z])language([[:space:]]*)=", "\\1Xlanguage=", $text);
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", "\\1Xon\\2=", $text);
- /// Clean up embedded scripts and , using kses
- $text = cleanAttributes($text);
-
return $text;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.