[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 24 20:50:38 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:  azaozz
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8.1
Component:  Media                     |     Version:  5.8
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------
Changes (by azaozz):

 * owner:  (none) => azaozz
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"51653" 51653]:
 {{{
 #!CommitTicketReference repository="" revision="51653"
 Media: Fix `wp_unique_filename()` to check for name collisions with all
 alternate file names when an image may be converted after uploading. This
 includes possible collinions with pre-existing images whose sub-
 sizes/thumbnails are regenerated.

 Props ianmjones, azaozz.
 Fixes #53668.
 }}}

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


More information about the wp-trac mailing list