Changeset 42010 for trunk/src/wp-admin/includes/file.php
- Timestamp:
- 10/24/2017 11:10:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/file.php
r42007 r42010 1120 1120 continue; 1121 1121 1122 // Don't extract invalid files: 1122 1123 if ( 0 !== validate_file( $info['name'] ) ) { 1123 return new WP_Error( 'invalid_file_ziparchive', __( 'Could not extract file from archive.' ), $info['name'] );1124 continue; 1124 1125 } 1125 1126 … … 1181 1182 continue; 1182 1183 1184 // Don't extract invalid files: 1185 if ( 0 !== validate_file( $info['name'] ) ) { 1186 continue; 1187 } 1188 1183 1189 $contents = $z->getFromIndex($i); 1184 1190 if ( false === $contents ) … … 1284 1290 continue; 1285 1291 1292 // Don't extract invalid files: 1286 1293 if ( 0 !== validate_file( $file['filename'] ) ) { 1287 return new WP_Error( 'invalid_file_pclzip', __( 'Could not extract file from archive.' ), $file['filename'] );1294 continue; 1288 1295 } 1289 1296
Note: See TracChangeset
for help on using the changeset viewer.