- Timestamp:
- 09/06/2016 05:56:52 PM (9 years ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
-
branches/4.1/src/wp-admin/includes/class-wp-upgrader.php
r30920 r38530 2327 2327 wp_die( $uploads['error'] ); 2328 2328 2329 $this->filename = $_GET[$urlholder];2329 $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); 2330 2330 $this->package = $uploads['basedir'] . '/' . $this->filename; 2331 2332 if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { 2333 wp_die( __( 'Please select a file' ) ); 2334 } 2331 2335 } 2332 2336 }
Note: See TracChangeset
for help on using the changeset viewer.