Make WordPress Core

Changeset 17410


Ignore:
Timestamp:
02/07/2011 07:11:17 PM (15 years ago)
Author:
markjaquith
Message:

A little escaping paranoia, just to be safe. (Already sanitized, higher up). for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r17395 r17410  
    271271        return;
    272272
    273     $title = htmlspecialchars( trim( $post->post_title ), ENT_QUOTES );
     273    $title = esc_textarea( trim( $post->post_title ) );
    274274
    275275    echo '
     
    278278    <div class="post_name">' . apply_filters('editable_slug', $post->post_name) . '</div>
    279279    <div class="post_author">' . $post->post_author . '</div>
    280     <div class="comment_status">' . $post->comment_status . '</div>
    281     <div class="ping_status">' . $post->ping_status . '</div>
    282     <div class="_status">' . $post->post_status . '</div>
     280    <div class="comment_status">' . esc_html( $post->comment_status ) . '</div>
     281    <div class="ping_status">' . esc_html( $post->ping_status ) . '</div>
     282    <div class="_status">' . esc_html( $post->post_status ) . '</div>
    283283    <div class="jj">' . mysql2date( 'd', $post->post_date, false ) . '</div>
    284284    <div class="mm">' . mysql2date( 'm', $post->post_date, false ) . '</div>
Note: See TracChangeset for help on using the changeset viewer.