mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-24 21:48:21 +01:00
Defuse XSS in Calendar
Summary: `addDetail()` takes HTML because we have links there fairly often. :/ This design is iffy. Test Plan: Reloaded `/calendar/status/`, verified no XSS. Reviewers: btrahan, vrana Reviewed By: vrana CC: aran Maniphest Tasks: T139 Differential Revision: https://secure.phabricator.com/D4074
This commit is contained in:
parent
27785c4f75
commit
02e8a322dc
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ final class PhabricatorCalendarViewStatusController
|
||||||
->setHref($href)
|
->setHref($href)
|
||||||
->addDetail(
|
->addDetail(
|
||||||
pht('Description'),
|
pht('Description'),
|
||||||
$status->getDescription())
|
phutil_escape_html($status->getDescription()))
|
||||||
->addAttribute(pht('From %s', $from))
|
->addAttribute(pht('From %s', $from))
|
||||||
->addAttribute(pht('To %s', $to));
|
->addAttribute(pht('To %s', $to));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue