diff --git a/website/routes.py b/website/routes.py index 857f80c..fb3d15c 100644 --- a/website/routes.py +++ b/website/routes.py @@ -263,7 +263,7 @@ def hnsid_domain(domain): @bp.route("/txt", methods=["POST"]) def txtLogin(): # Get domain from form - domain = request.form.get("domain").lower().strip().replace("/", "") + domain = request.form.get("domain").lower().strip().replace("/", "").removesuffix(".") # Get uuid uuid = session["uuid"] @@ -326,11 +326,11 @@ def txtLogin(): custom=""), 200 @bp.route("/txt/") -def txtLoginDomain(domain): +def txtLoginDomain(domain:str): # Get uuid uuid = session["uuid"] - idns_records = get_idns_records(domain.lower().strip().replace("/", "")) + idns_records = get_idns_records(domain.lower().strip().replace("/", "").removesuffix(".")) for record in idns_records: