cfqueryparam question
Is it necessary to keep keywords and certain symbols out of data if cfqueryparam and htmleditformat() are used ?
Is it necessary to keep keywords and certain symbols out of data if cfqueryparam and htmleditformat() are used ?
Would htmleditformat() would protect against that ?
If you store what you collected, and use htmleditformat for displaying the data, the js will not execute. However, if you are using a rich textarea to collect the data, you might have a problem because that data will include html tags.
If you go to cfilb.org you will find a useful function called safetext. It strips the nefarious tags and preserves the benign ones.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.