mirror of https://github.com/pallets/flask.git
Fix typo
This commit is contained in:
parent
d4390442b7
commit
6e064b3ff2
|
@ -147,7 +147,9 @@ how you're using untrusted data.
|
||||||
name = request.args.get("name", "")
|
name = request.args.get("name", "")
|
||||||
return f"Hello, {escape(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>``,
|
If a user managed to submit ``/hello?name=<script>alert("bad")</script>``,
|
||||||
escaping causes it to be rendered as text, rather than running the
|
escaping causes it to be rendered as text, rather than running the
|
||||||
|
|
Loading…
Reference in New Issue