WordPress.org

Make WordPress Core

Changeset 18638


Ignore:
Timestamp:
09/05/2011 04:55:05 PM (10 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-files.php

    r17922 r18638  
    2424}
    2525
    26 $file = BLOGUPLOADDIR . str_replace( '..', '', $_GET[ 'file' ] );
     26$file = trailingslashit( BLOGUPLOADDIR ) . str_replace( '..', '', $_GET[ 'file' ] );
    2727if ( !is_file( $file ) ) {
    2828    status_header( 404 );
Note: See TracChangeset for help on using the changeset viewer.