Changeset 1041
- Timestamp:
- 08/23/07 11:21:31 (1 year ago)
- Files:
-
- trunk/wp-content/blogs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-content/blogs.php
r857 r1041 70 70 71 71 72 $file = $_GET[ 'file' ]; 73 74 $file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . $file; 72 $file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . str_replace( '..', '', $_GET[ 'file' ] ); 75 73 if ( !is_file( $file ) ) { 76 74 header("HTTP/1.1 404 Not Found"); … … 78 76 } 79 77 80 $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); 78 if( function_exists( "mime_content_type" ) ) { 79 $mime[ 'type' ] = mime_content_type( $_SERVER[ 'REQUEST_URI' ] ); 80 } else { 81 $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); 82 } 81 83 if( $mime[ 'type' ] != false ) { 82 84 $mimetype = $mime[ 'type' ];
