Changeset 41463 for branches/4.3
- Timestamp:
- 09/19/2017 02:41:23 PM (7 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
-
branches/4.3/src/wp-admin/includes/file.php
r40728 r41463 607 607 continue; 608 608 609 if ( 0 !== validate_file( $info['name'] ) ) { 610 return new WP_Error( 'invalid_file_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] ); 611 } 612 609 613 $uncompressed_size += $info['size']; 610 614 … … 763 767 if ( '__MACOSX/' === substr($file['filename'], 0, 9) ) // Don't extract the OS X-created __MACOSX directory files 764 768 continue; 769 770 if ( 0 !== validate_file( $file['filename'] ) ) { 771 return new WP_Error( 'invalid_file_pclzip', __( 'Could not extract file from archive.' ), $file['filename'] ); 772 } 765 773 766 774 if ( ! $wp_filesystem->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE) )
Note: See TracChangeset
for help on using the changeset viewer.