Ticket #15325: 15325.diff
File 15325.diff, 621 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/import.php
56 56 * 57 57 * @since 2.0.0 58 58 * 59 * @return array 59 * @return array Uploaded file's details on success, error message on failure 60 60 */ 61 61 function wp_import_handle_upload() { 62 62 if ( !isset($_FILES['import']) ) { … … 73 73 74 74 $url = $file['url']; 75 75 $type = $file['type']; 76 $file = addslashes( $file['file'] );76 $file = $file['file']; 77 77 $filename = basename( $file ); 78 78 79 79 // Construct the object array