Changeset 45936
- Timestamp:
- 09/04/2019 04:08:03 PM (5 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/async-upload.php
r45926 r45936 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'] ) { -
trunk/src/wp-admin/includes/ajax-actions.php
r45934 r45936 2509 2509 'data' => array( 2510 2510 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2511 'filename' => $_FILES['async-upload']['name'],2511 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2512 2512 ), 2513 2513 ) … … 2526 2526 'data' => array( 2527 2527 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2528 'filename' => $_FILES['async-upload']['name'],2528 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2529 2529 ), 2530 2530 ) … … 2553 2553 'data' => array( 2554 2554 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2555 'filename' => $_FILES['async-upload']['name'],2555 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2556 2556 ), 2557 2557 ) … … 2570 2570 'data' => array( 2571 2571 'message' => $attachment_id->get_error_message(), 2572 'filename' => $_FILES['async-upload']['name'],2572 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2573 2573 ), 2574 2574 )
Note: See TracChangeset
for help on using the changeset viewer.