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

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

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.3.1
DEFAULT BRANCH: master
Ran 30 Nov 2026 03:29PM 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 08:44AM UTC coverage: 77.771% (+0.2%) from 77.597%
46450797794

Pull #104

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.
Pull Request #104: Sanitize the rule preview's rich content

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

1263 of 1624 relevant lines covered (77.77%)

44.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
92.87
-0.3% rest/server.go
Jobs
ID Job ID Ran Files Coverage
1 46450797794.1 30 Nov 2026 03:29PM UTC 16
77.77
GitHub Action Run
Source Files on build 46450797794
  • Tree
  • List 16
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #104
  • PR Base - master (#46380425701)
  • 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