From f7e635a7cd786b3a5f0e738cba52f17a27d441ff Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Wed, 13 Feb 2013 11:22:35 -0500 Subject: [PATCH] fix npe w/ prev commit --- cms/templates/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/login.html b/cms/templates/login.html index 94fd0f4d95..072e6b9e9b 100644 --- a/cms/templates/login.html +++ b/cms/templates/login.html @@ -78,7 +78,7 @@ function(json) { if(json.success) { var next = /next=([^&]*)/g.exec(decodeURIComponent(window.location.search)); - if (next.length > 1) { + if (next && next.length > 1) { location.href = next[1]; } else location.href = "${reverse('homepage')}";