From 762b93df7643b316c856a53df7da5d135390976e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 17 Mar 2022 17:14:22 +0200 Subject: [PATCH] fh --- files/routes/users.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/users.py b/files/routes/users.py index 26452b268..a3ce50806 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -890,6 +890,11 @@ def remove_follow(username, v): @limiter.exempt @auth_desired def user_profile_uid(v, id): + try: id = int(id) + except: + try: id = int(id, 36) + except: abort(404) + if not v and not request.path.startswith('/logged_out'): return redirect(f"{SITE_FULL}/logged_out{request.full_path}") if v and request.path.startswith('/logged_out'): v = None