summaryrefslogtreecommitdiffstats
path: root/wp-content/blogs.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-28 23:02:02 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-09-28 23:02:02 +0000
commit3262571895ef526406dd072e518a1a46e956c499 (patch)
tree9f950b3380bd67e65cae5991558effaa4f49a47b /wp-content/blogs.php
parent3f7098c26a85606fa7978b19fe7b1e919deeb1f0 (diff)
downloadwordpress-mu-3262571895ef526406dd072e518a1a46e956c499.tar.gz
wordpress-mu-3262571895ef526406dd072e518a1a46e956c499.tar.xz
wordpress-mu-3262571895ef526406dd072e518a1a46e956c499.zip
Fix upload path
Fix die() git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@783 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content/blogs.php')
-rw-r--r--wp-content/blogs.php7
1 files changed, 3 insertions, 4 deletions
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 &#8212; File not found.');
+ die('404 &#8212; 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 &#8212; File not found.');
+ die('404 &#8212; 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 &#8212; File not found.');
+ die('404 &#8212; File not found.');
}
$mime = wp_check_filetype( $_SERVER[ 'REQUEST_URI' ] );