fix: Remove any trailing dots
All checks were successful
Build Docker / Build Docker (push) Successful in 29s

This commit is contained in:
Nathan Woodburn 2024-06-22 16:36:41 +10:00
parent 2f121e38f8
commit 79621f2d0f
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -263,7 +263,7 @@ def hnsid_domain(domain):
@bp.route("/txt", methods=["POST"]) @bp.route("/txt", methods=["POST"])
def txtLogin(): def txtLogin():
# Get domain from form # Get domain from form
domain = request.form.get("domain").lower().strip().replace("/", "") domain = request.form.get("domain").lower().strip().replace("/", "").removesuffix(".")
# Get uuid # Get uuid
uuid = session["uuid"] uuid = session["uuid"]
@ -326,11 +326,11 @@ def txtLogin():
custom="<button onclick='window.location.reload();'>Try again</button>"), 200 custom="<button onclick='window.location.reload();'>Try again</button>"), 200
@bp.route("/txt/<domain>") @bp.route("/txt/<domain>")
def txtLoginDomain(domain): def txtLoginDomain(domain:str):
# Get uuid # Get uuid
uuid = session["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: for record in idns_records: