代码收藏

'''''''''''''''''''''''''''''''''''''''''''''''用户名和密码检查 function Chk_usrpss(Str,strname,lenmin,lenmax)'lenmin表长度下限,lenmax表长度上限 b=""c=trueif str="" thensession("errmsg")="对不起,"&amp;strname&amp;"不能为空!"response.redirect "错误"response.endend ifif len(str)<lenmin thensession("errmsg")="对不起,"&amp;strna...
个人收藏 | 2009-02-20 15:57 | 阅读 3759 次 | 评论 0 条

状态

function cleardb() if rs.state<>0 thenrs.close end ifif rs1.state<>0 thenrs1.close end ifif rs2.state<>0 thenrs2.close end ifif conn.state<>0 thenconn.close end if set rs=nothingset rs1=nothingset rs2=nothingset conn=nothing end function
个人收藏 | 2009-02-20 15:53 | 阅读 2496 次 | 评论 0 条

去除参数里的SQL注入语句

记得以前网上有个“桂林老兵SQL注入点扫描工具”,虽然是黑客工具,但是可以扫描出你的网站有哪些网页可以实施SQL注入,找到这些网页后加入放注入的函数 Function SafeRequest(ParaValue) ParaValue = Trim(Request(ParaValue)) If ParaValue = "" Then SafeRequest = "" Exit Function End If '要过滤的字符以","隔开 LockValue = "',Se...
个人收藏 | 2009-02-02 17:58 | 阅读 4231 次 | 评论 0 条
浏览10484次
文章归档
最新评论