Commit 47003bc3 authored by Pietro Albini's avatar Pietro Albini

Redirect to the download page if the payload is invalid

parent d5aac19f
......@@ -230,7 +230,7 @@ class Downloads:
try:
content = signer.loads(payload)
except itsdangerous.BadSignature:
flask.abort(400)
return flask.redirect(flask.url_for("pages.download_index"))
return flask.render_template("download/thanks.html", **content)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment