1
0
Fork 0
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:
epriestley 2012-12-03 16:46:56 -08:00
parent 27785c4f75
commit 02e8a322dc

View file

@ -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));