View Single Post
Old 09-20-2010, 03:32 PM  
Zyber
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 832
Quote:
Originally Posted by Varius View Post
The proper thing to do would just be to properly sanitize all variables that are involved in your queries. If everything is sanitized, there will be no injection. For example, instead of putting quotes around an integer like age, you can verify it's of the proper type and within a specific range.
I agree with this. Properly validated integers should be safe to use without quotes.
Zyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote