scripts.mit.edu
/
autoinstalls
/
wordpress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Wordpress 3.1.3
[autoinstalls/wordpress.git]
/
wp-admin
/
includes
/
media.php
diff --git
a/wp-admin/includes/media.php
b/wp-admin/includes/media.php
index c9d603ea8fa25eabed533584c05b76020a2b1ff3..7e27ded13399e4d837adeb0b3a041be4dacfb62d 100644
(file)
--- a/
wp-admin/includes/media.php
+++ b/
wp-admin/includes/media.php
@@
-1192,7
+1192,7
@@
function get_media_item( $attachment_id, $args = null ) {
$toggle_on = __( 'Show' );
$toggle_off = __( 'Hide' );
- $filename =
basename( $post->guid
);
+ $filename =
esc_html( basename( $post->guid )
);
$title = esc_attr( $post->post_title );
if ( $_tags = get_the_tags( $attachment_id ) ) {