Admin: Escape attachment name in case it contains special characters

git-svn-id: https://develop.svn.wordpress.org/trunk@37774 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Nikolay Bachiyski
2016-06-21 14:18:27 +00:00
parent 93cae978dd
commit 6e9a0fb948
2 changed files with 2 additions and 2 deletions
@@ -395,7 +395,7 @@ class WP_Media_List_Table extends WP_List_Table {
<span class="screen-reader-text"><?php _e( 'File name:' ); ?> </span>
<?php
$file = get_attached_file( $post->ID );
echo wp_basename( $file );
echo esc_html( wp_basename( $file ) );
?>
</p>
<?php