From f3249b872723fe74e68a5210ca8c871e816cad31 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Jun 2024 21:02:02 +1000 Subject: [PATCH] fix: Encode the next url before returning in the form url --- website/routes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/routes.py b/website/routes.py index 7fe4c58..46b0378 100644 --- a/website/routes.py +++ b/website/routes.py @@ -18,6 +18,7 @@ from datetime import timedelta from eth_account.messages import encode_defunct from eth_account import Account import json +import urllib.parse @@ -186,7 +187,10 @@ def home(): if 'domains' in session: domains = session['domains'] - + # URL encode the next page + if next_page: + next_page = urllib.parse.quote(next_page) + return render_template("home.html", user=user, clients=clients, address=address, hnsid=hnsid, users=users,