From a0cd13553b1b59a850618c3c68c1ec92d8f078bc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 6 Sep 2011 15:41:57 +0000 Subject: [PATCH] trailingslashit isn't normally available in ms-files. props davecpage, fixes #18592. git-svn-id: https://develop.svn.wordpress.org/trunk@18642 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-files.php b/wp-includes/ms-files.php index 4c09cddda9..e7ab0a4ccc 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 = trailingslashit( BLOGUPLOADDIR ) . str_replace( '..', '', $_GET[ 'file' ] ); +$file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( '404 — File not found.' );