diff --git a/website/routes.py b/website/routes.py index c60dfa9..a440cc8 100644 --- a/website/routes.py +++ b/website/routes.py @@ -601,6 +601,8 @@ def profile(username): @bp.route("/u//avatar.png") def avatar(username): + username = username.lower().strip().replace("/", "") + user = User.query.filter_by(username=username).first() if not user: print("User not found")