1. 首页
  2. 数据库
  3. 其它
  4. 两个小函数让你的ASP程序对SQL注入免疫!

两个小函数让你的ASP程序对SQL注入免疫!

上传者: 2021-01-04 04:41:16上传 PDF文件 51KB 热度 6次
Rem ## 长整数转换 Function toNum(s, default) If IsNumeric(s) and s <> “” then toNum = CLng(s) Else toNum = default End If End Function Rem ## SQL 语句转换 Function toSql(str) If IsNull(str) Then str = “” toSql = replace(str, “””, “”””) End Function 示例: Dim sql Dim strWhere, strName, intAge
下载地址
用户评论