Skip to content

fix(download_file): sanitize windows separators and add regression test

a47e9c7
Select commit
Loading
Failed to load commit list.
Open

Harden Content-Disposition filename sanitization in download_file to prevent path traversal #181

fix(download_file): sanitize windows separators and add regression test
a47e9c7
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded May 14, 2026 in 0s

98.46% (+0.13%) compared to c98dbf6

View this Pull Request on Codecov

98.46% (+0.13%) compared to c98dbf6

Details

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.46%. Comparing base (c98dbf6) to head (a47e9c7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #181      +/-   ##
==========================================
+ Coverage   98.33%   98.46%   +0.13%     
==========================================
  Files          13       13              
  Lines         780      781       +1     
==========================================
+ Hits          767      769       +2     
+ Misses         13       12       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.