Changeset 38531
- Timestamp:
- 09/06/2016 05:59:31 PM (10 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-admin/includes/class-wp-upgrader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-admin/includes/class-wp-upgrader.php
r29694 r38531 1768 1768 wp_die( $uploads['error'] ); 1769 1769 1770 $this->filename = $_GET[$urlholder];1770 $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); 1771 1771 $this->package = $uploads['basedir'] . '/' . $this->filename; 1772 1773 if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { 1774 wp_die( __( 'Please select a file' ) ); 1775 } 1772 1776 } 1773 1777 }
Note: See TracChangeset
for help on using the changeset viewer.