Changeset 45943
- Timestamp:
- 09/04/2019 04:28:49 PM (5 years ago)
- Location:
- branches/4.9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
-
branches/4.9/src/wp-admin/async-upload.php
r41554 r45943 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/4.9/src/wp-admin/includes/ajax-actions.php
r44845 r45943 2071 2071 'data' => array( 2072 2072 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2073 'filename' => $_FILES['async-upload']['name'],2073 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2074 2074 ) 2075 2075 ) ); … … 2085 2085 'data' => array( 2086 2086 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2087 'filename' => $_FILES['async-upload']['name'],2087 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2088 2088 ) 2089 2089 ) ); … … 2109 2109 'data' => array( 2110 2110 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2111 'filename' => $_FILES['async-upload']['name'],2111 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2112 2112 ) 2113 2113 ) ); … … 2124 2124 'data' => array( 2125 2125 'message' => $attachment_id->get_error_message(), 2126 'filename' => $_FILES['async-upload']['name'],2126 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2127 2127 ) 2128 2128 ) );
Note: See TracChangeset
for help on using the changeset viewer.