vc
This commit is contained in:
parent
c3f9b38182
commit
a795bd39e9
10 changed files with 33 additions and 33 deletions
|
@ -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}/')
|
Loading…
Add table
Add a link
Reference in a new issue