Skip to content
Myr

Warn about SQL injection in the tutorial.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ron DuPlain · committed by Armin Ronacher · parent 82b143f · Browse files · 1 file+7 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−0 removed

  • other:+7 added−0 removed

1 file+7 added−0 removed

modified:docs/tutorial/views.rst+7 added
46 unmodified lines
4748Note that we check that the user is logged in here (the `logged_in` key is49present in the session and `True`).5051.. admonition:: Security Note5253 Be sure to use question marks when building SQL statements, as done in the54 example above. Otherwise, your app will be vulnerable to SQL injection when55 you use string formatting to build SQL statements.56 See :ref:`sqlite3` for more.5758Login and Logout59----------------6061These functions are used to sign the user in and out. Login checks the
37 unmodified lines