From 5b719029eedd0ddbf7889f2b0b4868d65063b64c Mon Sep 17 00:00:00 2001 From: muchwowmining Date: Sat, 19 Mar 2022 17:31:58 +0100 Subject: [PATCH] Address format check --- yellow/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yellow/routes.py b/yellow/routes.py index 608bdd3..1bb801f 100644 --- a/yellow/routes.py +++ b/yellow/routes.py @@ -38,6 +38,8 @@ async def dashboard_address_post(): address = form.get('address') if len(address) != 97: raise Exception("Please submit a WOW address") + elif not address.isalnum(): + raise Exception("Please submit a WOW address") # update user from yellow.models import User