This commit is contained in:
Aevann1 2022-01-17 13:50:03 +02:00
parent 3c6426d071
commit 41d3c00305
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ def login_get(v):
redir = request.values.get("redirect")
if redir:
redir = replace("/logged_out", "").strip()
redir = redir.replace("/logged_out", "").strip()
if not redir.startswith(request.host_url) and not redir.startswith('/'): redir = None
if v and redir: return redirect(redir)
@ -142,7 +142,7 @@ def login_post():
redir = request.values.get("redirect")
if redir:
redir = replace("/logged_out", "").strip()
redir = redir.replace("/logged_out", "").strip()
if not redir.startswith(request.host_url) and not redir.startswith('/'): redir = '/'
return redirect(redir)