Avoid double escaping in error view title
Summary: Searched for `AphrontErrorView` and then for `setTitle()`. Test Plan: None. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2432 Differential Revision: https://secure.phabricator.com/D4880
This commit is contained in:
@@ -32,8 +32,7 @@ extends PhabricatorOAuthClientBaseController {
|
||||
->setURI('/oauthserver/client/?deleted=1');
|
||||
}
|
||||
|
||||
$client_name = phutil_escape_html($client->getName());
|
||||
$title .= ' '.$client_name;
|
||||
$title .= ' '.$client->getName();
|
||||
|
||||
$dialog = new AphrontDialogView();
|
||||
$dialog->setUser($current_user);
|
||||
|
||||
@@ -113,10 +113,8 @@ extends PhabricatorOAuthClientBaseController {
|
||||
$new = $this->getRequest()->getStr('new');
|
||||
$deleted = $this->getRequest()->getBool('deleted');
|
||||
if ($edited) {
|
||||
$edited = phutil_escape_html($edited);
|
||||
$title = 'Successfully edited client with id '.$edited.'.';
|
||||
} else if ($new) {
|
||||
$new = phutil_escape_html($new);
|
||||
$title = 'Successfully created client with id '.$new.'.';
|
||||
} else if ($deleted) {
|
||||
$title = 'Successfully deleted client.';
|
||||
|
||||
Reference in New Issue
Block a user