Changeset 55703 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 05/02/2023 03:43:03 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r55538 r55703 998 998 999 999 if ( false === $move_new_file ) { 1000 if ( 0 === strpos( $uploads['basedir'], ABSPATH ) ) {1000 if ( str_starts_with( $uploads['basedir'], ABSPATH ) ) { 1001 1001 $error_path = str_replace( ABSPATH, '', $uploads['basedir'] ) . $uploads['subdir']; 1002 1002 } else { … … 1197 1197 $content_disposition = strtolower( $content_disposition ); 1198 1198 1199 if ( 0 === strpos( $content_disposition, 'attachment; filename=' ) ) {1199 if ( str_starts_with( $content_disposition, 'attachment; filename=' ) ) { 1200 1200 $tmpfname_disposition = sanitize_file_name( substr( $content_disposition, 21 ) ); 1201 1201 } else { … … 1938 1938 1939 1939 foreach ( $skip_list as $skip_item ) { 1940 if ( 0 === strpos( $skip_item, $filename . '/' ) ) {1940 if ( str_starts_with( $skip_item, $filename . '/' ) ) { 1941 1941 $sub_skip_list[] = preg_replace( '!^' . preg_quote( $filename, '!' ) . '/!i', '', $skip_item ); 1942 1942 }
Note: See TracChangeset
for help on using the changeset viewer.