Changeset 41469
- Timestamp:
- 09/19/2017 02:46:55 PM (7 years ago)
- Location:
- branches/3.7
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7
-
branches/3.7/src
- Property svn:mergeinfo changed
/trunk/src merged: 41457
- Property svn:mergeinfo changed
-
branches/3.7/src/wp-admin/includes/file.php
r40734 r41469 610 610 continue; 611 611 612 if ( 0 !== validate_file( $info['name'] ) ) { 613 return new WP_Error( 'invalid_file_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] ); 614 } 615 612 616 $uncompressed_size += $info['size']; 613 617 … … 762 766 if ( '__MACOSX/' === substr($file['filename'], 0, 9) ) // Don't extract the OS X-created __MACOSX directory files 763 767 continue; 768 769 if ( 0 !== validate_file( $file['filename'] ) ) { 770 return new WP_Error( 'invalid_file_pclzip', __( 'Could not extract file from archive.' ), $file['filename'] ); 771 } 764 772 765 773 if ( ! $wp_filesystem->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE) )
Note: See TracChangeset
for help on using the changeset viewer.