单引号注入SQL,取代函数,要怎么写
单引号注入SQL,取代函数,要怎么写
function ck(str)
str=server.htmlencode(str)
str=replace(str,"'","")
str=replace(str,chr(39),"")
str=replace(str,vbcrlf,"<br>")
str=replace(str,chr(13),"<br>")
ck=str
end function
使用:
username=ck(request.form("username"))