From 9aa164cfc89521dbc3b20929d947f42b2bc71f17 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 5 Feb 2011 18:26:46 +0000 Subject: [PATCH] Properly encode the post title. Props koopersmith, nacin. For trunk git-svn-id: https://develop.svn.wordpress.org/trunk@17395 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index d9790bef47..622aa2ecbc 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -270,7 +270,7 @@ function get_inline_data($post) { if ( ! current_user_can($post_type_object->cap->edit_post, $post->ID) ) return; - $title = esc_attr( trim( $post->post_title ) ); + $title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES ); echo '