I have old projects containing a lot of queries which are not using cfqueryparam
to prevent SQL injection. Is there any way to use some function to do similar on Application level on each form field?
As a beginner with a PHP background, I thought I could loop posted data and do an escape_string()
or similar. but I don't want data to be saved in escaped form. I think cfqueryparam
doesn't save data in escaped form. (I haven't tried it yet. I'm new at CF.) Otherwise, I have to unescape the data back on each retrieve, which I don't want to do. I want the input to be inserted and retrieved as is.
Basically I just want it to be done at application level so I don't have to change thousands of queries one by one on each project.
Sample input
it's my book
user@gmail.com'; delete database --