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

zulip / zulip-mobile / 3544 / 1
47%
master: 47%

Build:
DEFAULT BRANCH: master
Ran 01 Oct 2018 01:11PM UTC
Files 363
Run time 15s
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

29 Sep 2018 04:18AM UTC coverage: 50.347%. Remained the same
COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv

push

travis-ci

gnprice
webview html: Treat match_subject as HTML (fix #2845).

The `subject` field is plain text, and we need to treat it as such.
Until 994145383 "webview: Escape *everything* that isn't intended as HTML",
we treated it as HTML, and that caused a serious bug (a potential
security vulnerability) in the case where another user sent a message
whose topic (aka subject) happened to contain HTML metacharacters.

On the other hand when we do a search, the `match_subject` field marks
up the subject with HTML to describe how to highlight matching terms.
Currently we treat `match_subject` just like `subject`, so we end up
treating that HTML as text and re-encoding it as HTML.

Fortunately, the server correctly handles the interaction of `subject`
being text and `match_subject` needing to use HTML, in that before
marking up the topic, it encodes it (*) as HTML.  So, we can simply
take `match_subject` as the HTML to display.

(*) Except in a certain case which we never exercise; see zulip/zulip#10588 .

Fixes #2845.

1014 of 2104 branches covered (48.19%)

Branch coverage included in aggregate %.

1960 of 3803 relevant lines covered (51.54%)

49.96 hits per line

Source Files on job 3544.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 22760
  • Travis Job 3544.1
  • 46cacfce on github
  • Prev Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#6.1)
  • Next Job for COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv on master (#10.1)
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