Commit fec28336 by Ned Batchelder Committed by Anurag Ramdasan

Fix the decoding of ?next=

parent dea5c7d3
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment