This commit is contained in:
1 parent
339df89fcf
commit
651c36367f
33 files changed
+1420
-40
No files matched your search
@@ -41,6 +41,7 @@ var f = [`src`, `width`, `height`],
|
||||
// 仅接收站内绝对路径或无认证信息的 HTTP(S) 地址,拒绝控制字符和反斜杠。
|
||||
function m(e) {
|
||||
let t = String(e ?? ``).trim();
|
||||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝图标 URL 内的控制字符。
|
||||
if (!t || /[\u0000-\u0020\u007f\\]/.test(t)) return ``;
|
||||
if (/^\/(?!\/)/.test(t)) return t;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user