mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
@@ -18,7 +18,7 @@ def find_nextlocation(request, user):
|
||||
return reverse("core:user_index")
|
||||
nextlocation = request.POST.get("next", request.GET.get("next"))
|
||||
condition = (
|
||||
nextlocation is not None and nextlocation != "" and
|
||||
nextlocation is not None and nextlocation != "" and nextlocation != "None" and
|
||||
is_safe_url(nextlocation, host=request.get_host())
|
||||
)
|
||||
if condition:
|
||||
|
||||
Reference in New Issue
Block a user