<%
'For Each r In Request.QueryString
 If RegExpTest("[%<>\s';]+",Request.QueryString) then
  Response.Write("<script language='javascript'>alert('信息有误!');</script>")
  Response.End()
 end If
'Next
'vbscript正则表达式测试方法
 function RegExpTest(patrn, strng)
  Dim regEx ' 建立变量。
  Set regEx = New RegExp ' 建立正则表达式。
  regEx.Pattern = patrn ' 设置模式。
  regEx.IgnoreCase = False ' 设置是否区分大小写。
  RegExpTest = regEx.Test(strng) ' 执行搜索测试。
 end Function
%>

相关文章:

  • 2021-05-14
  • 2021-11-10
  • 2022-12-23
  • 2021-04-04
  • 2021-12-23
  • 2021-08-29
  • 2022-01-27
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-06-05
  • 2021-12-01
  • 2021-05-01
相关资源
相似解决方案