From d098a166cbce026b5ae52a135699628028fbee41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Flor=C3=A9al=20Cabanettes?= Date: Fri, 14 Jul 2017 14:04:51 +0200 Subject: [PATCH] Fix redirect url --- modoboa/core/views/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modoboa/core/views/base.py b/modoboa/core/views/base.py index 8a934ba65..69b798179 100644 --- a/modoboa/core/views/base.py +++ b/modoboa/core/views/base.py @@ -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: