X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/b3ddbea8a296025a672b3c3ddca158dc51ed8080..refs/tags/wordpress-3.3.1-scripts:/wp-includes/ms-files.php diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php index 2d68f11d..e7ab0a4c 100644 --- a/wp-includes/ms-files.php +++ b/wp-includes/ms-files.php @@ -23,7 +23,7 @@ if ( $current_blog->archived == '1' || $current_blog->spam == '1' || $current_bl die( '404 — File not found.' ); } -$file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] ); +$file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( '404 — File not found.' );