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

romshark / datapages / 37218728008

04 Oct 2026 04:56PM UTC coverage: 43.902% (+0.03%) from 43.87%
37218728008

push

github

romshark
fix: Check WithDatastarJS URLs against RFC 3986

WithDatastarJS refuses a URL with & or ', which RFC 3986 allows:

    datapages.WithDatastarJS("https://cdn.example.com/ds.js?v=1&min=1")
    // WithDatastarJS: URL contains '&'

The page writes the URL HTML-escaped, not raw as the docs say.
Accept any URL valid according to RFC 3986 and refuse the rest.

5 of 5 new or added lines in 1 file covered. (100.0%)

58 existing lines in 2 files now uncovered.

16074 of 36613 relevant lines covered (43.9%)

578.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

85.34
/runtime/httpserve/core.go


Source Not Available

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