Convert AphrontErrorView to safe HTML
Summary: Done by searching for `AphrontErrorView` and then `appendChild()`. Test Plan: Looked at Commit Detail. Looked at Revision Detail. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4843
This commit is contained in:
@@ -31,9 +31,12 @@ final class PhabricatorMustVerifyEmailController
|
||||
$sent = new AphrontErrorView();
|
||||
$sent->setSeverity(AphrontErrorView::SEVERITY_NOTICE);
|
||||
$sent->setTitle(pht('Email Sent'));
|
||||
$sent->appendChild('<p>'.
|
||||
pht('Another verification email was sent to <strong>%s</strong>.',
|
||||
phutil_escape_html($email_address)).'</p>');
|
||||
$sent->appendChild(phutil_tag(
|
||||
'p',
|
||||
array(),
|
||||
pht(
|
||||
'Another verification email was sent to %s.',
|
||||
phutil_tag('strong', array(), $email_address))));
|
||||
}
|
||||
|
||||
$error_view = new AphrontRequestFailureView();
|
||||
|
||||
Reference in New Issue
Block a user