Fix the decoding of ?next=
This commit is contained in:
committed by
Anurag Ramdasan
parent
dea5c7d3db
commit
fec283366f
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user