Convert some phutil_escape_html() to hsprintf()
Summary: Found by `sgrep_php -e '"...".phutil_escape_html(...)'`. Test Plan: / /D1 /uiexample/ /countdown/1/ /herald/transcript/1/all/ Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4869
This commit is contained in:
@@ -33,9 +33,9 @@ final class PhabricatorFileDeleteController extends PhabricatorFileController {
|
||||
$dialog = new AphrontDialogView();
|
||||
$dialog->setUser($user);
|
||||
$dialog->setTitle('Really delete file?');
|
||||
$dialog->appendChild(
|
||||
"<p>Permanently delete '".phutil_escape_html($file->getName())."'? This ".
|
||||
"action can not be undone.");
|
||||
$dialog->appendChild(hsprintf(
|
||||
"<p>Permanently delete '%s'? This action can not be undone.</p>",
|
||||
$file->getName()));
|
||||
$dialog->addSubmitButton('Delete');
|
||||
$dialog->addCancelButton($file->getInfoURI());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user