Make WordPress Core


Ignore:
Timestamp:
09/04/2019 04:30:11 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Escape the output in wp_ajax_upload_attachment().

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

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-admin/async-upload.php

    r39756 r45944  
    3333require_once( ABSPATH . 'wp-admin/admin.php' );
    3434
    35 header( 'Content-Type: text/html; charset=' . get_option( 'blog_charset' ) );
     35header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) );
    3636
    3737if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) {
Note: See TracChangeset for help on using the changeset viewer.