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

zulip / zulip-mobile / 7043
47%

Build:
DEFAULT BRANCH: master
Ran 29 Sep 2018 04:24AM UTC
Jobs 1
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

pending completion
7043

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

Jobs
ID Job ID Ran Files Coverage
1 7043.1 (COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv) 29 Sep 2018 04:24AM UTC 0
50.35
Travis Job 7043.1
Source Files on build 7043
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7043
  • 46cacfce on github
  • Prev Build on master (#7034)
  • Next Build on master (#6)
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