用这个函数代替Request,可以防止SQL注入.
来源:互联网 发布:visa有什么用 知乎 编辑:程序博客网 时间:2024/03/29 15:32
用这个函数代替Request,可以防止SQL注入.
Function SafeRequest(ParaName,ParaType)
'ParaName:参数名称-字符型
'ParaType:参数类型-数字型(1表示以上参数是数字,0表示以上参数为字符)
Dim Paravalue
Paravalue=Request(ParaName)
If ParaType=1 then
If not isNumeric(Paravalue) then
Response.write "参数" & ParaName & "必须为数字型!"
Response.end
End if
Else
Paravalue=replace(Paravalue,"'","''")
End if
SafeRequest=Paravalue
End function
- 用这个函数代替Request,可以防止SQL注入.
- 代替ASP中的Request函数,防止SQL注入
- <%'我给大家一个函数,代替ASP中的Request函数,可以对一切的SQL注入Say NO,函数如下:
- 防止sql注入函数
- php防止sql注入函数
- 防止SQL注入的函数?
- 为什么PrepareStatement可以防止sql注入
- 为什么参数化SQL查询可以防止SQL注入?
- 防止SQL注入的函数(转)
- 利用instr()函数防止SQL注入攻击
- ASP.NET 防止SQL注入的函数
- 利用instr()函数防止SQL注入攻击
- 防止SQL注入的函数(转)
- 利用instr()函数防止SQL注入攻击
- 利用instr()函数防止SQL注入攻击
- 利用instr()函数防止SQL注入攻击
- ASP.NET防止SQL注入函数
- 利用instr()函数防止SQL注入攻击
- VC STL的list iterator P.J实现
- RedHat9.0下安装Oracle8i
- ASP中对注册表的操作
- j2ee程序员应该掌握的linux知识
- 人工智能技术的走向
- 用这个函数代替Request,可以防止SQL注入.
- C#中Base64之编码,解码方法
- The Programming Language Idioms
- Java用户界面本地化实例探索
- Windows Media Format SDK系统概述
- take me to your heart(translate into chinese in two edition)
- 浅析数据源在JDBC中的应用
- Php部分常见问题总结
- ASP中使用Oracle Object For Ole连接Oracle数据库