[mod_python] How to sanitize input?

Kevin White jedirunner at gmail.com
Mon Dec 13 17:58:24 EST 2004


Before I take form data and start putting it into an sql statement for
updating/inserting to a database, I assume I will need to clean it up.
That is, in PHP, I used to addslashes() to each field before inserting
to the database, in case it has characters that would mess up the sql.

How do I sanitize my input in python?


Kevin White
jedirunner at gmail.com

More information about the Mod_python mailing list