From ff2bd91c486371441aae3110ea747b57a1f13ef4 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Dec 2021 22:29:31 +0200 Subject: [PATCH] fdsdfs --- files/routes/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/users.py b/files/routes/users.py index 0d299f6016..0344611833 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -819,7 +819,7 @@ def user_profile_uid(id): x=get_account(id) purl = x.profile_url - if not 'images/' in purl: return redirect(purl) + if not purl.startswith(f'{request.host_url}images/'): return redirect(purl) path = purl.split('images/')[1] resp = make_response(send_from_directory('/images', path))