一聚教程网:一个值得你收藏的教程网站

热门教程

asp 简单安全过滤sql防注入程序

时间:2022-07-02 23:02:51 编辑:袖梨 来源:一聚教程网

 Function ReplaceCode(Str,tagStr)
  Str = Replace(Str,Chr(32),tagStr)
  Str = Replace(Str,Chr(9),tagStr)
  Str = Replace(Str," ",tagStr)
  Str = Replace(Str," ",tagStr)
  Str = Replace(Str,"(",tagStr)
  Str = Replace(Str,")",tagStr)
  Str = Replace(Str,"<",tagStr)
  Str = Replace(Str,">",tagStr)
  Str = Replace(Str,"""",tagStr)
  Str = Replace(Str,"?",tagStr)
  Str = Replace(Str,"*",tagStr)
  Str = Replace(Str,"|",tagStr)
  Str = Replace(Str,",",tagStr)
  Str = Replace(Str,".",tagStr)
  Str = Replace(Str,"/",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"-",tagStr)
  Str = Replace(Str,"@",tagStr)
  Str = Replace(Str,"#",tagStr)
  Str = Replace(Str,"$",tagStr)
  Str = Replace(Str,"%",tagStr)
  Str = Replace(Str,"&",tagStr)
  Str = Replace(Str,"+",tagStr)
  Str = Replace(Str,":",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"",tagStr)
  Str = Replace(Str,"",tagStr)
  ReplaceCode = Str
 End Function 

热门栏目