Skip to content

Commit 390dfa2

Browse files
committedSep 13, 2012
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
1 parent 34dfbda commit 390dfa2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/applications/ponder/view/PonderQuestionDetailView.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public function render() {
4646

4747
$panel = id(new AphrontPanelView())
4848
->addClass("ponder-panel")
49-
->setHeader($this->renderObjectLink().' '.$question->getTitle());
49+
->setHeader(
50+
$this->renderObjectLink().' '.
51+
phutil_escape_html($question->getTitle()));
5052

5153
$contentview = new PonderPostBodyView();
5254
$contentview

0 commit comments

Comments
 (0)
Failed to load comments.