Changeset 45939
- Timestamp:
- 09/04/2019 04:17:53 PM (4 years ago)
- Location:
- branches/5.1
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
-
branches/5.1/src/wp-admin/async-upload.php
r44331 r45939 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.1/src/wp-admin/includes/ajax-actions.php
r44985 r45939 2304 2304 'data' => array( 2305 2305 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2306 'filename' => $_FILES['async-upload']['name'],2306 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2307 2307 ), 2308 2308 ) … … 2320 2320 'data' => array( 2321 2321 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2322 'filename' => $_FILES['async-upload']['name'],2322 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2323 2323 ), 2324 2324 ) … … 2346 2346 'data' => array( 2347 2347 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2348 'filename' => $_FILES['async-upload']['name'],2348 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2349 2349 ), 2350 2350 ) … … 2363 2363 'data' => array( 2364 2364 'message' => $attachment_id->get_error_message(), 2365 'filename' => $_FILES['async-upload']['name'],2365 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2366 2366 ), 2367 2367 )
Note: See TracChangeset
for help on using the changeset viewer.