1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 14:00:56 +01:00

fix ponder escaping issue

Summary: Question titles were not escaped; now they are.

Test Plan: Observe the escaping.

Reviewers: epriestley

Reviewed By: epriestley

CC: nh, aran, Korvin

Differential Revision: https://secure.phabricator.com/D3490
This commit is contained in:
Pieter Hooimeijer 2012-09-13 12:18:52 -07:00
parent 34dfbdaf44
commit 390dfa210d

View file

@ -46,7 +46,9 @@ final class PonderQuestionDetailView extends AphrontView {
$panel = id(new AphrontPanelView())
->addClass("ponder-panel")
->setHeader($this->renderObjectLink().' '.$question->getTitle());
->setHeader(
$this->renderObjectLink().' '.
phutil_escape_html($question->getTitle()));
$contentview = new PonderPostBodyView();
$contentview