Return safe HTML from all render()
Summary: This is pretty brutal and it adds some `phutil_safe_html()`. But it is a big step in the right direction. Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4905
This commit is contained in:
@@ -157,7 +157,7 @@ final class PhrictionDocumentController
|
||||
$version_note = $version_note->render();
|
||||
}
|
||||
|
||||
$children = $this->renderChildren($slug);
|
||||
$children = $this->renderDocumentChildren($slug);
|
||||
|
||||
$crumbs = $this->buildApplicationCrumbs();
|
||||
$crumb_views = $this->renderBreadcrumbs($slug);
|
||||
@@ -225,7 +225,7 @@ final class PhrictionDocumentController
|
||||
->setHref(PhrictionDocument::getSlugURI($slug, 'history')));
|
||||
}
|
||||
|
||||
private function renderChildren($slug) {
|
||||
private function renderDocumentChildren($slug) {
|
||||
$document_dao = new PhrictionDocument();
|
||||
$content_dao = new PhrictionContent();
|
||||
$conn = $document_dao->establishConnection('r');
|
||||
|
||||
Reference in New Issue
Block a user