From 3bda728420c68c78f7589926d7d3431472a3965f Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Wed, 1 Jul 2015 17:21:55 +0000 Subject: [PATCH] Add additional escaping to credits page. Props Viper007Bond, gtuk for initial patch. Fixes #21523. git-svn-id: https://develop.svn.wordpress.org/trunk@33032 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/credits.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/wp-admin/credits.php b/src/wp-admin/credits.php index 9cc4544c29..aaa5a4a2fa 100644 --- a/src/wp-admin/credits.php +++ b/src/wp-admin/credits.php @@ -69,7 +69,7 @@ function _wp_credits_add_profile_link( &$display_name, $username, $profiles ) { * @param string &$data External library data, passed by reference. */ function _wp_credits_build_object_link( &$data ) { - $data = '' . $data[0] . ''; + $data = '' . esc_html( $data[0] ) . ''; } list( $display_version ) = explode( '-', $wp_version ); @@ -120,7 +120,7 @@ foreach ( $credits['groups'] as $group_slug => $group_data ) { $title = translate( $group_data['name'] ); } - echo '

' . $title . "

\n"; + echo '

' . esc_html( $title ) . "

\n"; } if ( ! empty( $group_data['shuffle'] ) ) @@ -140,14 +140,14 @@ foreach ( $credits['groups'] as $group_slug => $group_data ) { $classes = 'wp-people-group ' . ( $compact ? 'compact' : '' ); echo '