Ticket #16330: 16330.diff
File 16330.diff, 578 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/media.php
565 565 // Set variables for storage 566 566 // fix file filename for query strings 567 567 preg_match('/[^\?]+\.(jpg|JPG|jpe|JPE|jpeg|JPEG|gif|GIF|png|PNG)/', $file, $matches); 568 $file_array['name'] = basename($matches[0]);568 $file_array['name'] = urldecode( basename( $matches[0] ) ); 569 569 $file_array['tmp_name'] = $tmp; 570 570 571 571 // If error storing temporarily, unlink