Changeset 41466 for branches/4.0
- Timestamp:
- 09/19/2017 02:42:44 PM (8 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-admin/includes/file.php
r40731 r41466 596 596 continue; 597 597 598 if ( 0 !== validate_file( $info['name'] ) ) { 599 return new WP_Error( 'invalid_file_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] ); 600 } 601 598 602 $uncompressed_size += $info['size']; 599 603 … … 748 752 if ( '__MACOSX/' === substr($file['filename'], 0, 9) ) // Don't extract the OS X-created __MACOSX directory files 749 753 continue; 754 755 if ( 0 !== validate_file( $file['filename'] ) ) { 756 return new WP_Error( 'invalid_file_pclzip', __( 'Could not extract file from archive.' ), $file['filename'] ); 757 } 750 758 751 759 if ( ! $wp_filesystem->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE) )
Note: See TracChangeset
for help on using the changeset viewer.