[wp-trac] [WordPress Trac] #53668: Generated images for one file can be overwritten by another with the same name when mapping mime types for generated images

WordPress Trac noreply at wordpress.org
Tue Aug 17 14:12:43 UTC 2021


#53668: Generated images for one file can be overwritten by another with the same
name when mapping mime types for generated images
----------------------------------------------------+---------------------
 Reporter:  ianmjones                               |       Owner:  (none)
     Type:  defect (bug)                            |      Status:  new
 Priority:  normal                                  |   Milestone:  5.8.1
Component:  Media                                   |     Version:  5.8
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-testing has-unit-tests  |     Focuses:
----------------------------------------------------+---------------------
Changes (by ianmjones):

 * Attachment "53668.4.diff" added.

 More robust handling of versioned files, uppercase extensions including on
 pre-existing files, and re-analysis of of original upload type previously
 tested alternate types in response to filename versioning. Inspired by
 @azaozz's alternate PR, and includes his changes for tests and
 wp_get_default_mime_type_extension.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53668>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list