xxs_check
為什么80%的碼農都做不了架構師?>>> ??
function xxs_check($post) {
$hack=array("script", "style", "src", ?"http", "js", "css", "img", "eval", "frame", "=", "." , ?"/", "#","<", ">", "*", "&", "?","%","|","@",":","(",")" ,"\"" ,"'" ,"+" ,"-" ,"`" ,"\\" ,"!" ," " );
if (!get_magic_quotes_gpc()) ?
{?
$post = addslashes($post); ??
}?
$post= strtolower($post);?
$post=trim($post);
$post = str_replace($hack, "", $post);
return $post;
}
轉載于:https://my.oschina.net/jphper/blog/136975
總結
- 上一篇: c# 扩展方法奇思妙用高级篇六:WinF
- 下一篇: JVM的垃圾回收与内存分配