Jump to content

SQL-based authentication: Difference between revisions

m
→‎{{header|Python}}: added improve template about sql security
(added omit from ML/I)
m (→‎{{header|Python}}: added improve template about sql security)
Line 309:
 
=={{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'''
import MySQLdb
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.