fix jc mistake

pull/83/head
Aevann 2022-12-27 08:19:36 +02:00
parent 68c00456f0
commit 3b8bb2576b
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ def sign_up_post(v:Optional[User]):
redir = request.values.get("redirect", "").strip().rstrip('?').lower()
if redir:
if is_site_url(redir) or redir not in NO_LOGIN_REDIRECT_URLS:
if is_site_url(redir) and redir not in NO_LOGIN_REDIRECT_URLS:
return redirect(redir)
return redirect('/')