This commit is contained in:
1 parent
339df89fcf
commit
651c36367f
33 files changed
+1420
-40
No files matched your search
+3
-1
@@ -13,6 +13,7 @@ function t(t) {
|
||||
return [];
|
||||
let n = typeof t.img == `string` ? t.img : ``,
|
||||
r =
|
||||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝登录图标路径中的控制字符。
|
||||
/^\/(?!\/)/.test(n) && !/[\\\u0000-\u0020]/.test(n)
|
||||
? n
|
||||
: backend_menu_o(n);
|
||||
@@ -29,7 +30,8 @@ function t(t) {
|
||||
}
|
||||
function n(t, n) {
|
||||
return typeof t == `string`
|
||||
? /^\/(?!\/)/.test(t) && !/[\\\u0000-\u0020]/.test(t)
|
||||
? // eslint-disable-next-line no-control-regex -- 安全边界:拒绝登录跳转地址中的控制字符。
|
||||
/^\/(?!\/)/.test(t) && !/[\\\u0000-\u0020]/.test(t)
|
||||
? new URL(t, n).href
|
||||
: backend_menu_o(t)
|
||||
: ``;
|
||||
|
||||
Reference in new issue
Block a user