mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +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)
|
||||
->addDetail(
|
||||
pht('Description'),
|
||||
$status->getDescription())
|
||||
phutil_escape_html($status->getDescription()))
|
||||
->addAttribute(pht('From %s', $from))
|
||||
->addAttribute(pht('To %s', $to));
|
||||
|
||||
|
|
Loading…
Reference in a new issue