Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed clean_text() SC#76

  • Loading branch information...
commit 52b38b1ae57940dd70ee06b035ab4b3b7a93aae3 1 parent d8a0992
skodak authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/weblib.php
6 lib/weblib.php
@@ -793,13 +793,13 @@ function clean_text($text, $format=FORMAT_MOODLE) {
793 793 /// Remove tags that are not allowed
794 794 $text = strip_tags($text, $ALLOWED_TAGS);
795 795
  796 + /// Clean up embedded scripts and , using kses
  797 + $text = cleanAttributes($text);
  798 +
796 799 /// Remove script events
797 800 $text = eregi_replace("([^a-z])language([[:space:]]*)=", "\\1Xlanguage=", $text);
798 801 $text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", "\\1Xon\\2=", $text);
799 802
800   - /// Clean up embedded scripts and , using kses
801   - $text = cleanAttributes($text);
802   -
803 803 return $text;
804 804 }
805 805 }

0 comments on commit 52b38b1

Please sign in to comment.
Something went wrong with that request. Please try again.