This commit is contained in:
Aevann1 2022-01-24 22:26:15 +02:00
parent c3f9b38182
commit a795bd39e9
10 changed files with 33 additions and 33 deletions

View file

@ -18,7 +18,7 @@ def error_401(e):
path = request.path
qs = urlencode(dict(request.values))
argval = quote(f"{path}?{qs}", safe='')
return redirect(f"/login?redirect={argval}")
return redirect(f"{SITE_FULL}/login?redirect={argval}")
@app.errorhandler(403)
@ -62,4 +62,4 @@ 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)
return redirect('/')
return redirect(f'{SITE_FULL}/')