[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 31 23:56:26 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 fixed-major | Focuses:
--------------------------------------------------+---------------------
Changes (by desrosj):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"51706" 51706]:
{{{
#!CommitTicketReference repository="" revision="51706"
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.
Merges [51653] to the 5.8 branch.
Fixes #53668.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53668#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list