Changeset 45938
- Timestamp:
- 09/04/2019 04:14:35 PM (4 years ago)
- Location:
- branches/5.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.2
-
branches/5.2/src/wp-admin/async-upload.php
r44331 r45938 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.2/src/wp-admin/includes/ajax-actions.php
r45828 r45938 2313 2313 'data' => array( 2314 2314 'message' => __( 'Sorry, you are not allowed to upload files.' ), 2315 'filename' => $_FILES['async-upload']['name'],2315 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2316 2316 ), 2317 2317 ) … … 2329 2329 'data' => array( 2330 2330 'message' => __( 'Sorry, you are not allowed to attach files to this post.' ), 2331 'filename' => $_FILES['async-upload']['name'],2331 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2332 2332 ), 2333 2333 ) … … 2355 2355 'data' => array( 2356 2356 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 2357 'filename' => $_FILES['async-upload']['name'],2357 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2358 2358 ), 2359 2359 ) … … 2372 2372 'data' => array( 2373 2373 'message' => $attachment_id->get_error_message(), 2374 'filename' => $_FILES['async-upload']['name'],2374 'filename' => esc_html( $_FILES['async-upload']['name'] ), 2375 2375 ), 2376 2376 )
Note: See TracChangeset
for help on using the changeset viewer.