Changeset 696403
- Timestamp:
- 04/12/2013 05:38:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
edge-suite/trunk/includes/edge-suite-comp-builder.inc
r665554 r696403 328 328 $result = unzip($file, $destination); 329 329 if (is_wp_error($result)) { 330 throw new Exception('Extraction of ' . $file . ' failed .');330 throw new Exception('Extraction of ' . $file . ' failed: ' . $result->get_error_message()); 331 331 } 332 332 // Add ignored files … … 677 677 global $wp_filesystem; 678 678 // TODO: Test. 679 $allowed_extensions = 'js,png,jpg,gif,svg,css ';679 $allowed_extensions = 'js,png,jpg,gif,svg,css,html'; 680 680 // Strip spaces. 681 681 $allowed_extensions = str_replace(' ', '', $allowed_extensions); … … 684 684 // Check if list is valid. 685 685 if (!preg_match('/^([a-zA-Z0-9]{2,6}\|)*([a-zA-Z0-9]{2,6})$/', $allowed_extensions)) { 686 $allowed_extensions = 'js|png|jpg|gif|svg|css ';686 $allowed_extensions = 'js|png|jpg|gif|svg|css|html'; 687 687 } 688 688
Note: See TracChangeset
for help on using the changeset viewer.