Changeset 21219 for trunk/wp-admin/includes/media.php
- Timestamp:
- 07/05/2012 08:51:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/media.php
r21171 r21219 600 600 // Set variables for storage 601 601 // fix file filename for query strings 602 preg_match( '/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $file, $matches);602 preg_match( '/[^\?]+\.(jpe?g|jpe|gif|png)\b/i', $file, $matches ); 603 603 $file_array['name'] = basename($matches[0]); 604 604 $file_array['tmp_name'] = $tmp;
Note: See TracChangeset
for help on using the changeset viewer.