Browse files

sanitization

  • Loading branch information...
1 parent eff4f81 commit d6a6286de6f0c5637b9e430f0acb3a02689604a8 @billyrennekamp committed Nov 28, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 index.php
View
3 index.php
@@ -109,13 +109,16 @@ function unstrip_array($array){
$val = str_ireplace("onclick", "", $val);
$val = str_ireplace("script", "", $val);
$val = str_ireplace("javascript", "", $val);
+ $val = str_ireplace("java", "", $val);
$val = str_ireplace("iframe", "", $val);
$val = str_ireplace(".js", "", $val);
$val = str_ireplace("alert", "", $val);
$val = str_ireplace("xss", "", $val);
$val = str_ireplace("input", "", $val);
$val = str_ireplace("onload", "", $val);
$val = str_ireplace("onabort", "", $val);
+ $val = str_ireplace("onmousemove", "", $val);
+ $val = str_ireplace("onhover", "", $val);
}
}
return $array;

0 comments on commit d6a6286

Please sign in to comment.