WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-file-upload-upgrader.php

    r38525 r37432  
    101101                wp_die( $uploads['error'] );
    102102
    103             $this->filename = sanitize_file_name( $_GET[ $urlholder ] );
     103            $this->filename = $_GET[$urlholder];
    104104            $this->package = $uploads['basedir'] . '/' . $this->filename;
    105 
    106             if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) {
    107                 wp_die( __( 'Please select a file' ) );
    108             }
    109105        }
    110106    }
Note: See TracChangeset for help on using the changeset viewer.