Commit 134b9a2
committed
fix: 收紧搜索 worker 兜底与 server 伪造段 evidence
兜底前端库识别把 search.<hash>.min.js 这种 mkdocs / docusaurus / vitepress 等文档站通用的搜索 worker 文件名加入 genericNames 黑名单——真实搜索库(Lunr / FlexSearch / Pagefind / Algolia)有专用规则和版权注释命中,兜底不该再多列一条「疑似前端库: search」。同时 Server / X-Powered-By 字段被反代叠加或伪造时(如 openresty, Microsoft-IIS/10.0),evidence 行只显示匹配命中的首段,避免用户看到拼接值误以为第二段也被采信。
将版本号提升到 1.3.45。1 parent 857ae19 commit 134b9a2
4 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
154 | 157 | | |
155 | 158 | | |
156 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
| 87 | + | |
87 | 88 | | |
| 89 | + | |
| 90 | + | |
88 | 91 | | |
89 | 92 | | |
90 | 93 | | |
91 | | - | |
| 94 | + | |
92 | 95 | | |
93 | | - | |
| 96 | + | |
94 | 97 | | |
95 | 98 | | |
96 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| |||
0 commit comments