From 3262571895ef526406dd072e518a1a46e956c499 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 28 Sep 2006 23:02:02 +0000 Subject: Fix upload path Fix die() git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@783 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-content/blogs.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'wp-content/blogs.php') diff --git a/wp-content/blogs.php b/wp-content/blogs.php index 404d0fb..16cb742 100644 --- a/wp-content/blogs.php +++ b/wp-content/blogs.php @@ -8,7 +8,7 @@ if ( $current_blog->deleted == '1' ) { header("HTTP/1.1 404 Not Found"); - graceful_fail('404 — File not found.'); + die('404 — File not found.'); } if ( !function_exists('wp_check_filetype') ) : @@ -68,20 +68,19 @@ function wp_check_filetype($filename, $mimes = null) { } endif; - $file = $_GET[ 'file' ]; $file = constant( "ABSPATH" ) . constant( "UPLOADS" ) . $file; if ( !is_file( $file ) ) { header("HTTP/1.1 404 Not Found"); - graceful_fail('404 — File not found.'); + 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"); - graceful_fail('404 — File not found.'); + die('404 — File not found.'); } $mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] ); -- cgit