Changeset 45944
- Timestamp:
- 09/04/2019 04:30:11 PM (5 years ago)
- Location:
- branches/4.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
-
branches/4.8/src/wp-admin/async-upload.php
r39756 r45944 33 33 require_once( ABSPATH . 'wp-admin/admin.php' ); 34 34 35 header( 'Content-Type: text/ html; charset=' . get_option( 'blog_charset' ) );35 header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); 36 36 37 37 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { -
branches/4.8/src/wp-admin/includes/ajax-actions.php
r44846 r45944 2066 2066 'data' => array( 2067 2067 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2068 'filename' => $_FILES['async-upload']['name'],2068 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2069 2069 ) 2070 2070 ) ); … … 2080 2080 'data' => array( 2081 2081 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2082 'filename' => $_FILES['async-upload']['name'],2082 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2083 2083 ) 2084 2084 ) ); … … 2104 2104 'data' => array( 2105 2105 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2106 'filename' => $_FILES['async-upload']['name'],2106 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2107 2107 ) 2108 2108 ) ); … … 2119 2119 'data' => array( 2120 2120 'message' => $attachment_id->get_error_message(), 2121 'filename' => $_FILES['async-upload']['name'],2121 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2122 2122 ) 2123 2123 ) );
Note: See TracChangeset
for help on using the changeset viewer.