czx
This commit is contained in:
parent
8c1ac90b10
commit
0677106b21
10 changed files with 24 additions and 31 deletions
|
@ -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}/')
|
Loading…
Add table
Add a link
Reference in a new issue