Skip to content

Commit

Permalink
Replace script stuff with xxx instead of space to avoid repeating seq…
Browse files Browse the repository at this point in the history
…uences
  • Loading branch information
moodler committed Jun 14, 2003
1 parent 98808a4 commit 71e8bd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/weblib.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ function clean_text($text, $format) {
case FORMAT_HTML:
case FORMAT_WIKI:
$text = strip_tags($text, $ALLOWED_TAGS);
$text = str_ireplace("javascript:", " ", $text); // Remove javascript: label
$text = eregi_replace("([^a-z])language([[:space:]]*)=", " ", $text); // Remove javascript/VBScript
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", " ", $text); // Remove script events
$text = str_ireplace("javascript:", "xxx", $text); // Remove javascript: label
$text = eregi_replace("([^a-z])language([[:space:]]*)=", "xxx", $text); // Remove javascript/VBScript
$text = eregi_replace("([^a-z])on([a-z]+)([[:space:]]*)=", "xxx", $text); // Remove script events
return $text;

case FORMAT_PLAIN:
Expand Down

0 comments on commit 71e8bd8

Please sign in to comment.