• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alexferl / zerohttp / 47472347493
94%

Build:
DEFAULT BRANCH: master
Ran 05 Dec 2026 03:17AM UTC
Jobs 1
Files 93
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Dec 2026 03:16AM UTC coverage: 93.536% (-0.01%) from 93.546%
47472347493

push

github

web-flow
fix(examples/etag): sanitize the served file name (#186)

The file handler sliced the file name out of r.URL.Path and joined it onto
the static directory, which allows directory traversal: a request for
/file/../../etc/passwd escapes ./static. The example carried a comment
telling readers to sanitize in real code, but examples get copied.

Read the name from the route parameter instead and reduce it with
filepath.Base, so path separators cannot survive into the joined path.

Signed-off-by: alexferl <me@alexferl.com>

9333 of 9978 relevant lines covered (93.54%)

127.37 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
89.01
-0.55% server.go
2
96.15
-3.85% validator/registry.go
1
96.03
0.0% sse/sse.go
Jobs
ID Job ID Ran Files Coverage
1 47472347493.1 05 Dec 2026 03:17AM UTC 93
93.54
GitHub Action Run
Source Files on build 47472347493
  • Tree
  • List 93
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #47472347493
  • ce6e47ac on github
  • Prev Build on master (#47471949716)
  • Next Build on master (#47480198701)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc