更新: 2531 个文件 - 2026-03-17 21:00:03
这个提交包含在:
@@ -331,16 +331,16 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
|
||||
'minimal_validation: "read-only probe, controlled payload, reversible test"',
|
||||
"aliases:",
|
||||
]
|
||||
for alias in item.aliases:
|
||||
for alias in item.aliases or []:
|
||||
lines.append(f' - "{alias}"')
|
||||
lines.append("affected_versions:")
|
||||
for version in item.affected_versions[:20]:
|
||||
for version in (item.affected_versions or [])[:20]:
|
||||
lines.append(f' - "{version}"')
|
||||
lines.append("fixed_versions:")
|
||||
for version in item.fixed_versions[:20]:
|
||||
for version in (item.fixed_versions or [])[:20]:
|
||||
lines.append(f' - "{version}"')
|
||||
lines.append("secure_code_topics:")
|
||||
for topic in item.secure_code_topics:
|
||||
for topic in item.secure_code_topics or []:
|
||||
lines.append(f' - "{topic}"')
|
||||
lines.extend(
|
||||
[
|
||||
@@ -365,15 +365,15 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
|
||||
f"- 严重度: `{item.severity}`",
|
||||
f"- 来源置信度: `{item.source_confidence}`",
|
||||
f"- 官方主源: {item.official_source_url or '-'}",
|
||||
f"- 影响版本: `{', '.join(item.affected_versions[:10]) or 'unknown'}`",
|
||||
f"- 修复版本: `{', '.join(item.fixed_versions[:10]) or 'unknown'}`",
|
||||
f"- 影响版本: `{', '.join((item.affected_versions or [])[:10]) or 'unknown'}`",
|
||||
f"- 修复版本: `{', '.join((item.fixed_versions or [])[:10]) or 'unknown'}`",
|
||||
"",
|
||||
"## 其他来源",
|
||||
"",
|
||||
]
|
||||
)
|
||||
if item.secondary_source_urls:
|
||||
for ref in item.secondary_source_urls[:20]:
|
||||
for ref in (item.secondary_source_urls or [])[:20]:
|
||||
lines.append(f"- {ref}")
|
||||
else:
|
||||
lines.append("- 无额外来源")
|
||||
@@ -392,7 +392,7 @@ def render_case_pages(advisories: List[AdvisoryRecord]) -> None:
|
||||
"",
|
||||
]
|
||||
)
|
||||
for topic in item.secure_code_topics:
|
||||
for topic in item.secure_code_topics or []:
|
||||
for language in LANGUAGES:
|
||||
path = SECURE_CODE_ROOT / language / f"{topic}.md"
|
||||
if path.exists():
|
||||
|
||||
在新工单中引用
屏蔽一个用户