Commit d5aac19f authored by Pietro Albini's avatar Pietro Albini

Return a 404 if a distro doesn't exist

parent 743b31c6
......@@ -183,6 +183,9 @@ class Downloads:
@bp.route("/<distro>")
def landing(distro):
if distro not in self.config["distros"]:
flask.abort(404)
return flask.render_template(
"download/landing.html",
distro_name = distro,
......
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