[wp-trac] [WordPress Trac] #42437: Thumbnails can overwrite other uploads if filename matches

WordPress Trac noreply at wordpress.org
Mon Dec 9 12:19:31 UTC 2019


#42437: Thumbnails can overwrite other uploads if filename matches
-------------------------------------------------+---------------------
 Reporter:  Viper007Bond                         |       Owner:  pbiron
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.3.1
Component:  Upload                               |     Version:  4.8.3
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing fixed-major  |     Focuses:
-------------------------------------------------+---------------------
Changes (by SergeyBiryukov):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"46836" 46836]:
 {{{
 #!CommitTicketReference repository="" revision="46836"
 Upload: fix `wp_unique_filename()` to prevent name collisions with
 existing or future image sub-size file names, and add unit tests.

 Props Viper007Bond, pbiron, azaozz.
 Merges [46822], [46835] to the 5.3 branch.
 Fixes #42437.
 }}}

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


More information about the wp-trac mailing list