Changeset 38526
- Timestamp:
- 09/06/2016 05:34:00 PM (4 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
-
branches/4.5/src/wp-admin/includes/class-wp-upgrader.php
r36995 r38526 2660 2660 wp_die( $uploads['error'] ); 2661 2661 2662 $this->filename = $_GET[$urlholder];2662 $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); 2663 2663 $this->package = $uploads['basedir'] . '/' . $this->filename; 2664 2665 if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { 2666 wp_die( __( 'Please select a file' ) ); 2667 } 2664 2668 } 2665 2669 }
Note: See TracChangeset
for help on using the changeset viewer.