Permalink
Browse files

Some escaping

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@16373 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 72c7c21 commit e6e56a9a445f393d13613c9a5015698ffabc0be3 ryan committed Nov 14, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 wp-admin/plugins.php
View
@@ -255,11 +255,11 @@ function plugin_sandbox_scrape( $plugin ) {
foreach ( $plugin_info as $plugin ) {
if ( $plugin['is_uninstallable'] ) {
/* translators: 1: plugin name, 2: plugin author */
- echo '<li>', sprintf( __( '<strong>%1$s</strong> by <em>%2$s</em> (will also <strong>delete its data</strong>)' ), $plugin['Name'], $plugin['Author'] ), '</li>';
+ echo '<li>', sprintf( __( '<strong>%1$s</strong> by <em>%2$s</em> (will also <strong>delete its data</strong>)' ), esc_html($plugin['Name']), esc_html($plugin['Author']) ), '</li>';
$data_to_delete = true;
} else {
/* translators: 1: plugin name, 2: plugin author */
- echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), $plugin['Name'], $plugin['Author'] ), '</li>';
+ echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), esc_html($plugin['Name']), esc_html($plugin['Author']) ), '</li>';
}
}
?>
@@ -289,7 +289,7 @@ function plugin_sandbox_scrape( $plugin ) {
<ul class="code">
<?php
foreach ( (array)$files_to_delete as $file )
- echo '<li>' . str_replace(WP_PLUGIN_DIR, '', $file) . '</li>';
+ echo '<li>' . esc_html(str_replace(WP_PLUGIN_DIR, '', $file)) . '</li>';
?>
</ul>
</div>

0 comments on commit e6e56a9

Please sign in to comment.