security(Masters): 修复XSS漏洞并增强错误处理
- 移除 v-html 使用,改用模板渲染防止 XSS 攻击 - 添加 API 请求错误处理 (try-catch) - 使用可选链防止数组越界错误 - 添加 processImageUrl 函数安全处理图片 URL - 改进可访问性 (aria-label, loading lazy) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
1 changed file
with
96 additions
and
32 deletions
-
Please register or login to post a comment