Properly encode the post title. Props koopersmith, nacin. For trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@17395 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-02-05 18:26:46 +00:00
parent 7cfc0088d6
commit 687c69d009
1 changed files with 1 additions and 1 deletions

View File

@ -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 '
<div class="hidden" id="inline_' . $post->ID . '">