Added a check to disable VBSscript as well

This commit is contained in:
moodler
2003-06-09 06:18:45 +00:00
parent f1c9d90fbb
commit 0cd84e67ea
+2 -1
View File
@@ -512,7 +512,8 @@ function clean_text($text, $format) {
case FORMAT_WIKI:
$text = strip_tags($text, $ALLOWED_TAGS);
$text = str_ireplace("javascript:", " ", $text); // Remove javascript: label
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", " ", $text); // Remove javascript triggers
$text = eregi_replace("([^a-z])language([[:space:]]*)=", " ", $text); // Remove javascript/VBScript
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", " ", $text); // Remove script events
return $text;
case FORMAT_PLAIN: