Changeset 45947
- Timestamp:
- 09/04/2019 04:34:50 PM (17 months ago)
- Location:
- branches/4.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-admin/async-upload.php
r37914 r45947 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.7/src/wp-admin/includes/ajax-actions.php
r44847 r45947 2009 2009 'data' => array( 2010 2010 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2011 'filename' => $_FILES['async-upload']['name'],2011 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2012 2012 ) 2013 2013 ) ); … … 2023 2023 'data' => array( 2024 2024 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2025 'filename' => $_FILES['async-upload']['name'],2025 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2026 2026 ) 2027 2027 ) ); … … 2047 2047 'data' => array( 2048 2048 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2049 'filename' => $_FILES['async-upload']['name'],2049 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2050 2050 ) 2051 2051 ) ); … … 2062 2062 'data' => array( 2063 2063 'message' => $attachment_id->get_error_message(), 2064 'filename' => $_FILES['async-upload']['name'],2064 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2065 2065 ) 2066 2066 ) );
Note: See TracChangeset
for help on using the changeset viewer.