WordPress.org

Make WordPress Core

Changeset 18642


Ignore:
Timestamp:
09/06/2011 03:41:57 PM (10 years ago)
Author:
nacin
Message:

trailingslashit isn't normally available in ms-files. props davecpage, fixes #18592.

File:
1 edited

Legend:

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

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