SQL-based authentication: Difference between revisions

Content added Content deleted
(added omit from ML/I)
m (→‎{{header|Python}}: added improve template about sql security)
Line 309: Line 309:


=={{header|Python}}==
=={{header|Python}}==
{{improve|Python|This example is missing proper encoding to avoid SQL injection, which are present in the other examples. In general is is an unsafe practice to create sql commands directly with string operations}}
<lang python>'''with Python 2.6, gives a deprecation warning for sets module, but works'''
<lang python>'''with Python 2.6, gives a deprecation warning for sets module, but works'''
import MySQLdb
import MySQLdb