mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
[5.0.x] Corrected code-block directives in docs.
Backport of 0be6dde817
from main
This commit is contained in:
parent
454269b2e1
commit
f33eddff8a
4 changed files with 14 additions and 17 deletions
|
@ -757,9 +757,7 @@ should avoid them if possible.
|
|||
your SQL with user-provided data.
|
||||
|
||||
You also must not quote placeholders in the SQL string. This example is
|
||||
vulnerable to SQL injection because of the quotes around ``%s``:
|
||||
|
||||
.. code-block:: pycon
|
||||
vulnerable to SQL injection because of the quotes around ``%s``::
|
||||
|
||||
RawSQL("select col from sometable where othercol = '%s'") # unsafe!
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue