PHP Code:
function delhtml($str)
{
return mysql_real_escape_string(htmlspecialchars($str));
}
if(isset($_GET)){foreach($_GET as $key=>$value){$_GET[$key]=delhtml($value);}}
if(isset($_POST)){foreach($_POST as $key=>$value){$_POST[$key]=delhtml($value);}}
if(isset($_SESSION)){foreach($_SESSION as $key=>$value){$_SESSION[$key]=delhtml($value);}}
if(isset($_COOKIE)){foreach($_COOKIE as $key=>$value){$_COOKIE[$key]=delhtml($value);}}
No comments:
Post a Comment