Changeset 45941
- Timestamp:
- 09/04/2019 04:25:25 PM (5 years ago)
- Location:
- branches/5.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-admin/async-upload.php
r41554 r45941 23 23 require_once( ABSPATH . 'wp-admin/admin.php' ); 24 24 25 header( 'Content-Type: text/ html; charset=' . get_option( 'blog_charset' ) );25 header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); 26 26 27 27 if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { -
branches/5.0/src/wp-admin/includes/ajax-actions.php
r44844 r45941 2069 2069 'data' => array( 2070 2070 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2071 'filename' => $_FILES['async-upload']['name'],2071 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2072 2072 ) 2073 2073 ) ); … … 2083 2083 'data' => array( 2084 2084 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2085 'filename' => $_FILES['async-upload']['name'],2085 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2086 2086 ) 2087 2087 ) ); … … 2107 2107 'data' => array( 2108 2108 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2109 'filename' => $_FILES['async-upload']['name'],2109 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2110 2110 ) 2111 2111 ) ); … … 2122 2122 'data' => array( 2123 2123 'message' => $attachment_id->get_error_message(), 2124 'filename' => $_FILES['async-upload']['name'],2124 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2125 2125 ) 2126 2126 ) );
Note: See TracChangeset
for help on using the changeset viewer.