This commit is contained in:
1 parent
339df89fcf
commit
651c36367f
33 files changed
+1420
-40
No files matched your search
@@ -16,6 +16,7 @@ function n(e) {
|
||||
return (
|
||||
t.startsWith(`/`) &&
|
||||
!t.startsWith(`//`) &&
|
||||
// eslint-disable-next-line no-control-regex -- 安全边界:拒绝订单续接路径中的控制字符。
|
||||
!/[\\\u0000-\u0020\u007f]/.test(t)
|
||||
);
|
||||
}
|
||||
@@ -24,6 +25,7 @@ function r(e, r) {
|
||||
try {
|
||||
if (
|
||||
typeof e != `string` ||
|
||||
// eslint-disable-next-line no-control-regex -- 安全边界:解码后仍须拒绝控制字符绕过。
|
||||
/[\\\u0000-\u0020\u007f]/.test(e) ||
|
||||
!n(e.split(/[?#]/, 1)[0] || ``)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user