Force a trailing slash on BLOGUPLOADDIR in ms-files.php. props wonderboymusic, see #18592.

git-svn-id: http://svn.automattic.com/wordpress/trunk@18638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-09-05 16:55:05 +00:00
parent a4c18fc053
commit d6fe2825c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 = trailingslashit( BLOGUPLOADDIR ) . str_replace( '..', '', $_GET[ 'file' ] );
if ( !is_file( $file ) ) {
status_header( 404 );
die( '404 — File not found.' );