-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected warnings in cfquery tag #64
Comments
in #65, I changed the warning to correctly name the query. These inline comments with hashes can still be considered a "risk". Even within SQL comments. Though your particular use of it is probably quite safe from injection. I recommend you either disable that message code entirely or on a case-by-case basis (per file, per line) |
Was your question answered LaserByte? It was set up as a warning to let you know that parameters should be designated as types (cf_sql_char, etc) for security reasons. http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7c36.html |
I think so. As a clarification I've been writing the queries like this now:
Does this seem like the best approach for preventing SQL injection? |
adding the sql type adds the sql prevention attack. |
closing. I think this is all set |
I'm using MySQL comments in my code like the following cfquery statement to track the filename and the current line number for easier cross referencing in MySQL's query log.
However when I use these I'm getting warnings like this:
The text was updated successfully, but these errors were encountered: