Convert AphrontTableView to safe HTML

Summary:
Lots of killed `phutil_escape_html()`.

Done by searching for `AphrontTableView` and then `$rows` (usually) backwards.

Test Plan:
Looked at homepage.

  echo id(new AphrontTableView(array(array('<'))))->render();

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4884
This commit is contained in:
vrana
2013-02-09 12:10:16 -08:00
parent 58b6e2cac6
commit 9b8da73765
53 changed files with 206 additions and 262 deletions

View File

@@ -349,7 +349,7 @@ class AphrontDefaultApplicationConfiguration
),
$relative);
}
$file_name = $file_name.' : '.(int)$part['line'];
$file_name = hsprintf('%s : %d', $file_name, $part['line']);
} else {
$file_name = phutil_tag('em', array(), '(Internal)');
}
@@ -357,9 +357,9 @@ class AphrontDefaultApplicationConfiguration
$rows[] = array(
$depth--,
phutil_escape_html($lib),
$lib,
$file_name,
phutil_escape_html($where),
$where,
);
}
$table = new AphrontTableView($rows);
@@ -383,7 +383,7 @@ class AphrontDefaultApplicationConfiguration
'<div class="exception-trace-header">Stack Trace</div>'.
'%s',
'</div>',
phutil_safe_html($table->render()));
$table->render());
}
}