From 3d703cc19822f8f7cfcb299444d615b989504e39 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Fri, 30 Sep 2011 15:04:03 +0200 Subject: [PATCH] I think it should fix the problem... I was unable to reproduce it but I know it exists somewhere :-) Anyway, I need to add a proper way to handle unknown locations that can be entered manually (maybe custom 404 and 500 errors templates?) fixed #168 --- auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/views.py b/auth/views.py index 4ebf7c765..fc424e48b 100755 --- a/auth/views.py +++ b/auth/views.py @@ -31,7 +31,7 @@ def dologin(request): password=request.POST["password"]) next = request.POST["next"] - if next == "None": + if next.strip() in ["", "None"]: next = reverse(modoboa.admin.views.domains) return HttpResponseRedirect(next) else: