Convert AphrontFormView to safe HTML

Summary: Searched for `AphrontFormView` and then for `appendChild()`.

Test Plan: /login/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2432

Differential Revision: https://secure.phabricator.com/D4855
This commit is contained in:
vrana
2013-02-07 14:39:04 -08:00
parent 85961c8eca
commit afc5333bb3
19 changed files with 111 additions and 99 deletions

View File

@@ -80,10 +80,10 @@ final class PhabricatorConduitConsoleController
id(new AphrontFormMarkupControl())
->setLabel('Errors')
->setValue($error_description))
->appendChild(
->appendChild(hsprintf(
'<p class="aphront-form-instructions">Enter parameters using '.
'<strong>JSON</strong>. For instance, to enter a list, type: '.
'<tt>["apple", "banana", "cherry"]</tt>');
'<tt>["apple", "banana", "cherry"]</tt>'));
$params = $method_object->defineParamTypes();
foreach ($params as $param => $desc) {