This commit is contained in:
1 parent
339df89fcf
commit
651c36367f
33 files changed
+1420
-40
No files matched your search
@@ -21,6 +21,7 @@ var e = {
|
||||
/** 优先采用合法站内/HTTP(S)图片地址;否则从 e/n 的系统描述推断本地图标。 */
|
||||
function t(e, t, n) {
|
||||
let r = String(e ?? ``).trim();
|
||||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝模块 URL 内的控制字符。
|
||||
if (r && !/[\u0000-\u0020\u007f\\]/.test(r)) {
|
||||
if (/^\/(?!\/)/.test(r)) return r;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user