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

ukeeper / ukeeper-readability / 46516682236
79%
master: 83%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.1
DEFAULT BRANCH: master
Ran 30 Nov 2026 09:26PM UTC
Jobs 1
Files 16
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

30 Nov 2026 09:21PM UTC coverage: 78.858% (+0.1%) from 78.715%
46516682236

push

github

paskal
Sanitize the rule preview's rich content

The preview cast Rich to template.HTML on the claim that the extractor
had escaped it. That holds for the general parser, which keeps a
whitelist, but a custom rule returns the page's own markup, scripts and
event handlers included. An admin previewing a hostile page ran its
script in the admin origin, with the browser's cached Basic credentials.

Rich now goes through the vendored sanitizer before the cast. Only
whitelisted tags and attributes survive, and javascript: and data:
values are dropped. The tag list adds tables, figures and inline markup
to the sanitizer's defaults, and table spans and list numbering are
kept, so the preview still shows the structure a rule extracts.
<noscript> and <template> are dropped with their contents, which the
sanitizer would otherwise print as text. The API's rich_content is
unchanged.

25 of 28 new or added lines in 1 file covered. (89.29%)

1395 of 1769 relevant lines covered (78.86%)

50.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
92.57
-0.27% rest/server.go
Jobs
ID Job ID Ran Files Coverage
1 46516682236.1 30 Nov 2026 09:26PM UTC 16
78.86
GitHub Action Run
Source Files on build 46516682236
  • Tree
  • List 16
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • bc127baa on github
  • Prev Build on master (#46515753325)
  • Delete
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