This commit is contained in:
Aevann1 2022-01-28 22:02:35 +02:00
parent 8c1ac90b10
commit 0677106b21
10 changed files with 24 additions and 31 deletions

View file

@ -61,5 +61,7 @@ def error_500(e):
def allow_nsfw():
session["over_18"] = int(time.time()) + 3600
redir = request.values.get("redir")
if redir and redir.startswith(SITE_FULL) or redir.startswith('/'): return redirect(redir)
if redir:
if redir.startswith(SITE_FULL): return redirect(redir)
if redir.startswith('/'): return redirect(f'{SITE_FULL}{redir}')
return redirect(f'{SITE_FULL}/')