From fec283366fd5928cc81319b0c78cb9c39522c1ca Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 23 Jul 2014 10:58:39 -0400 Subject: [PATCH] Fix the decoding of ?next= --- lms/templates/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/templates/login.html b/lms/templates/login.html index 6670738af9..a99a017a75 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -54,8 +54,8 @@ var next = u.split("next=")[1]; if (next != undefined) { // if next is undefined, decodeURI returns "undefined" causing a bad redirect. - next = decodeURI(next); - } + next = decodeURIComponent(next); + } if (next && !isExternal(next)) { location.href=next; } else if(json.redirect_url){