给你一段代码,过滤输入特殊符号,保治百病(:)
rem 检查过滤所有的输入
dim dist
dist=replace(str,"''","''''")
dist=replace(dist,"<","<")
dist=replace(dist,">",">")
dist=replace(dist,"chr(60)","<")
dist=replace(dist,"chr(37)",">")
dist=replace(dist,"""",""")
dist=replace(dist,";",";;")
eck=dist
end function
sub showBody(Str)''多行文本显示函数
str=replace(str,chr(13),"<br>" & chr(13)+chr(10))
str=replace(str,chr(32)," ")
response.write str
end sub
Tags:
作者:佚名评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)
查看完整评论