发布日期: 2023-06-01
版本号: v1.9.1

本次更新包含以下改动:修复了Request.Context()检查的问题;解决了Content-Disposition中文件名未正确转义的安全漏洞。功能优化方面,直接使用bytes.ReplaceAll方法重构代码,采用官方推荐方式处理字符串和切片转换,并提升了渲染代码的测试覆盖率。文档部分更新了可信代理配置的说明链接,同时改进了代码检查、测试流程及GitHub Actions的配置设置。

更新内容 (中文)

更新日志

BUG 修复

  • 修复 Request.Context() 检查 #3512

安全

  • 修复 Content-Disposition 中文件名未转义的问题 #3556

改进

  • 重构:直接使用 bytes.ReplaceAll #3455
  • 使用官方推荐方式转换字符串和切片 #3344
  • 提升渲染代码覆盖率 #3525

文档

  • 文档:更新可信代理的文档链接 #3575
  • 维护:优化代码检查、测试及 GitHub Actions 配置 #3583

更新内容 (原始)

Changelog

BUG FIXES

  • fix Request.Context() checks #3512

SECURITY

  • fix lack of escaping of filename in Content-Disposition #3556

ENHANCEMENTS

  • refactor: use bytes.ReplaceAll directly #3455
  • convert strings and slices using the officially recommended way #3344
  • improve render code coverage #3525

DOCS

  • docs: changed documentation link for trusted proxies #3575
  • chore: improve linting, testing, and GitHub Actions setup #3583

下载链接