Changeset 38529
- Timestamp:
- 09/06/2016 05:54:09 PM (10 years ago)
- Location:
- branches/4.2
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-upgrader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.2
-
branches/4.2/src/wp-admin/includes/class-wp-upgrader.php
r33481 r38529 2331 2331 wp_die( $uploads['error'] ); 2332 2332 2333 $this->filename = $_GET[$urlholder];2333 $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); 2334 2334 $this->package = $uploads['basedir'] . '/' . $this->filename; 2335 2336 if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { 2337 wp_die( __( 'Please select a file' ) ); 2338 } 2335 2339 } 2336 2340 }
Note: See TracChangeset
for help on using the changeset viewer.