- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-file-upload-upgrader.php
r54133 r55703 109 109 $this->package = $uploads['basedir'] . '/' . $this->filename; 110 110 111 if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) {111 if ( ! str_starts_with( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { 112 112 wp_die( __( 'Please select a file' ) ); 113 113 }
Note: See TracChangeset
for help on using the changeset viewer.