Make WordPress Core


Ignore:
Timestamp:
09/04/2019 04:46:27 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Escape the output in wp_ajax_upload_attachment().

Merges [45936] to the 3.9 branch.
Props whyisjake, sstoqnov.

Location:
branches/3.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.9

  • branches/3.9/src/wp-admin/admin-ajax.php

    r28126 r45966  
    3333require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
    3434
    35 @header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
     35@header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
    3636@header( 'X-Robots-Tag: noindex' );
    3737
Note: See TracChangeset for help on using the changeset viewer.