This commit is contained in:
李扬 2017-06-24 22:42:59 +08:00 committed by GitHub
parent a7cb769a24
commit 1cfa17e48b

View File

@ -28,7 +28,7 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
return temp.indexOf("&")>=0 ? temp.split("&")[0] : temp;
}
var from = getLocationVal("__from");
if(from != ""){
if(from != "" && from.substring(0, 1) == "/"){
window.location.href = from;
}
else{
@ -48,4 +48,4 @@ require(["jquery", "bsAlert", "csrfToken", "validator"], function ($, bsAlert, c
}
});
});
});