Skip to content

Commit

Permalink
Strip whitespace from project argument (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
import-pandas-as-numpy authored May 3, 2024
1 parent 8b0150a commit ea50b35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inspector/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def handle_bad_request(e):
@app.route("/")
def index():
if project := request.args.get("project"):
project = project.strip()
return redirect(f"/project/{project}")
return render_template("index.html")

Expand Down

0 comments on commit ea50b35

Please sign in to comment.