/ Published in: ASP
functions for removing sql injection problems
Expand |
Embed | Plain Text
function stripQuotes(strWords) stripQuotes = replace(strWords, "'", "''") end function function killChars(strWords) dim badChars dim newChars badChars = array("select", "drop", ";", "--", "insert", "delete", "xp_") //badChars = array("%20","%"," ","#","+","(",")","&","$","@","!","*","<",">","?","/","|","\",",","-",":") newChars = strWords for i = 0 to uBound(badChars) newChars = replace(newChars, badChars(i), "") next killChars = newChars end function
You need to login to post a comment.
