From 6e5d978d4fb11d3e9f9fb47feb7bf58aad0b40c8 Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 22 Jan 2007 17:20:40 +0000 Subject: Remove extra file type serving protection (see #203) git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@857 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-content/blogs.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'wp-content') diff --git a/wp-content/blogs.php b/wp-content/blogs.php index ab7e944..e359626 100644 --- a/wp-content/blogs.php +++ b/wp-content/blogs.php @@ -77,13 +77,6 @@ if ( !is_file( $file ) ) { die('404 — File not found.'); } -// These should never, ever be served -$never = array( 'js', 'exe', 'swf', 'class', 'tar', 'zip', 'rar' ); -if ( in_array( preg_replace( '|.*\.(.*)$|', '$1', $file ), $never ) ) { - header("HTTP/1.1 404 Not Found"); - die('404 — File not found.'); -} - $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); if( $mime[ 'type' ] != false ) { $mimetype = $mime[ 'type' ]; -- cgit