Ticket #18592: add-trailingslashit.diff
File add-trailingslashit.diff, 498 bytes (added by , 13 years ago) |
---|
-
wp-includes/ms-files.php
23 23 die( '404 — File not found.' ); 24 24 } 25 25 26 $file = BLOGUPLOADDIR. str_replace( '..', '', $_GET[ 'file' ] );26 $file = trailingslashit( BLOGUPLOADDIR ) . str_replace( '..', '', $_GET[ 'file' ] ); 27 27 if ( !is_file( $file ) ) { 28 28 status_header( 404 ); 29 29 die( '404 — File not found.' );