Summary: Sgrepped for `"=~/</"` and manually changed every HTML. Test Plan: This doesn't work yet but it is hopefully one of the last diffs before Phabricator will be undoubtedly HTML safe. Reviewers: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4927
30 lines
646 B
PHP
30 lines
646 B
PHP
<?php
|
|
|
|
final class PhabricatorXHPASTViewFramesetController
|
|
extends PhabricatorXHPASTViewController {
|
|
|
|
private $id;
|
|
|
|
public function willProcessRequest(array $data) {
|
|
$this->id = $data['id'];
|
|
}
|
|
|
|
public function processRequest() {
|
|
$id = $this->id;
|
|
|
|
$response = new AphrontWebpageResponse();
|
|
$response->setFrameable(true);
|
|
$response->setContent(hsprintf(
|
|
'<frameset cols="33%%, 34%%, 33%%">'.
|
|
'<frame src="/xhpast/input/%s/" />'.
|
|
'<frame src="/xhpast/tree/%s/" />'.
|
|
'<frame src="/xhpast/stream/%s/" />'.
|
|
'</frameset>',
|
|
$id,
|
|
$id,
|
|
$id));
|
|
|
|
return $response;
|
|
}
|
|
}
|