From 8ce15e6c61f83931d2a604ba167a9bae6f3676fb Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 28 Feb 2022 02:14:53 +0200 Subject: [PATCH] fds --- files/routes/awards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index ee88053c7..2175e1f13 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -421,7 +421,7 @@ def award_post(pid, v): g.db.commit() if request.referrer and len(request.referrer) > 1: if request.referrer == f'{SITE_FULL}/submit': return redirect(post.permalink) - elif request.referrer.startswith(request.host): return redirect(request.referrer) + elif request.referrer.startswith(SITE_FULL): return redirect(request.referrer) return redirect(SITE_FULL) @@ -646,7 +646,7 @@ def award_comment(cid, v): g.db.add(author) g.db.commit() - if request.referrer and len(request.referrer) > 1 and request.referrer.startswith(request.host): + if request.referrer and len(request.referrer) > 1 and request.referrer.startswith(SITE_FULL): return redirect(request.referrer) return redirect(SITE_FULL)