Skip to content

Commit

Permalink
abort 400 if not schema
Browse files Browse the repository at this point in the history
  • Loading branch information
philipkcl committed Apr 4, 2024
1 parent 8c6ebb9 commit b5ea347
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions portality/view/publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def upload_file():
# otherwise we are dealing with a POST - file upload or supply of url
f = request.files.get("file")
schema = request.values.get("schema")
if not schema:
abort(400)
url = request.values.get("upload-xml-link")
resp = make_response(redirect(url_for("publisher.upload_file")))
resp.set_cookie("schema", schema)
Expand Down

0 comments on commit b5ea347

Please sign in to comment.