Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sanitization

  • Loading branch information...
commit d6a6286de6f0c5637b9e430f0acb3a02689604a8 1 parent eff4f81
billy rennekamp authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  index.php
3  index.php
View
@@ -109,6 +109,7 @@ 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);
@@ -116,6 +117,8 @@ function unstrip_array($array){
$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;
Please sign in to comment.
Something went wrong with that request. Please try again.