diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-28 12:01:16 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-11-28 12:01:16 +0000 |
commit | 8137c6491051a8bdc77e8559f4924307e8e2f1c7 (patch) | |
tree | 29a96d6378fa95847f2087224adc6ed8ccb0ab18 | |
parent | f0157a9e1570b31c6cb0269bab0b7c5ae2cc8644 (diff) | |
download | wordpress-mu-8137c6491051a8bdc77e8559f4924307e8e2f1c7.tar.gz wordpress-mu-8137c6491051a8bdc77e8559f4924307e8e2f1c7.tar.xz wordpress-mu-8137c6491051a8bdc77e8559f4924307e8e2f1c7.zip |
Die, die, die! (fixes #202)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@814 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-content/blogs.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-content/blogs.php b/wp-content/blogs.php index cf01353..18c1a96 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') ) :
@@ -74,14 +74,14 @@ $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' ] );
|