mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[5.0.x] Corrected code-block directives in docs.
Backport of 0be6dde817 from main
This commit is contained in:
@@ -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!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user