I'm using the cfqueryparam tag for the first time (this is my first public web-site using Coldfusion). I've read that the "maxlength" setting can prevent people from inputting malicious query statments into the database.... I was wondering what the maximum I should set the "maxlength" parameter to in order to keep users from doing this. How long is a malicious SQL statement?
Also, I have forms where users can fill in information about themselves... how do I keep these malicious strings from being inserted when I have the maxlength set to 1000 characters? I've thought about using character restrictions, but was curious if there is a different way.
Also, I have forms where users can fill in information about themselves... how do I keep these malicious strings from being inserted when I have the maxlength set to 1000 characters? I've thought about using character restrictions, but was curious if there is a different way.