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
This commit is contained in:
Antoine Nguyen
2011-09-30 15:04:03 +02:00
parent e7d61c829b
commit 3d703cc198
+1 -1
View File
@@ -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: