diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php
index f5af8e0..5ec6d1d 100644
a
|
b
|
if ( !is_file( $file ) ) { |
29 | 29 | die( '404 — File not found.' ); |
30 | 30 | } |
31 | 31 | |
32 | | $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); |
| 32 | $mime = wp_check_filetype( $file ); |
33 | 33 | if( false === $mime[ 'type' ] && function_exists( 'mime_content_type' ) ) |
34 | 34 | $mime[ 'type' ] = mime_content_type( $file ); |
35 | 35 | |
36 | 36 | if( $mime[ 'type' ] ) |
37 | 37 | $mimetype = $mime[ 'type' ]; |
38 | 38 | else |
39 | | $mimetype = 'image/' . substr( $_SERVER[ 'REQUEST_URI' ], strrpos( $_SERVER[ 'REQUEST_URI' ], '.' ) + 1 ); |
| 39 | $mimetype = 'image/' . substr( $file, strrpos( $file, '.' ) + 1 ); |
40 | 40 | |
41 | 41 | header( 'Content-type: ' . $mimetype ); // always send this |
42 | 42 | if ( false === strpos( $_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS' ) ) |