This commit is contained in:
Badhreesh 2025-05-22 12:56:14 +02:00 committed by GitHub
parent d4390442b7
commit 6e064b3ff2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ how you're using untrusted data.
name = request.args.get("name", "")
return f"Hello, {escape(name)}!"
User input can be submitted to the view function via the URL as query paramters (``/hello?name=Bob``). Refer :ref:`the-request-object` for information on how the query parameters are accessed.
User input can be submitted to the view function via the URL as query parameters,
like ``/hello?name=Bob``. Refer :ref:`the-request-object` for information on how
the query parameters are accessed.
If a user managed to submit ``/hello?name=<script>alert("bad")</script>``,
escaping causes it to be rendered as text, rather than running the