mirror of https://github.com/pallets/flask.git
Initial commit
This commit is contained in:
parent
a42c4d54a3
commit
0f2004c9e6
|
@ -141,7 +141,7 @@ how you're using untrusted data.
|
||||||
|
|
||||||
from markupsafe import escape
|
from markupsafe import escape
|
||||||
|
|
||||||
@app.route("/<name>")
|
@app.route("/<path:name>")
|
||||||
def hello(name):
|
def hello(name):
|
||||||
return f"Hello, {escape(name)}!"
|
return f"Hello, {escape(name)}!"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue