Fix decodeRoute

This commit is contained in:
oc 2019-03-31 20:01:02 +08:00
parent cf382a1271
commit 61e0c582a0

View File

@ -485,7 +485,8 @@ utils.prototype.decodeRoute = function (route) {
// 解压缩
try {
var v = LZString.decompressFromBase64(route);
if (/^[a-zA-Z0-9+\/=:()]*$/.test(v)) {
if (v != null && /^[-_a-zA-Z0-9+\/=:()]*$/.test(v)) {
if (v != "" || route.length < 8)
route = v;
}
} catch (e) {