CFQUERYPARAM prevents injection just by virtue of using the tag,
there's nothing else you need to do.

cheers,
barneyb

On 4/27/05, Clark Slater <[EMAIL PROTECTED]> wrote:
> I have a requirement to store long URLs in my database (VARCHAR (256)). Of
> course this URL is often a parameter in my queries. How can I prevent a SQL
> injection attack using cfqueryparam? Checking for max length is not going to
> help because there could easily be a nasty SQL statement far shorter than an
> average URL string.
> 
> What's best practice for this type of thing?
> 
> Thanks for any guidance,
> 
> Clark

-- 
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 50 invites.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204861
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to