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

WordPress Trac noreply at wordpress.org
Fri Dec 6 22:26:32 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 needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by azaozz):

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


Comment:

 In [changeset:"46822" 46822]:
 {{{
 #!CommitTicketReference repository="" revision="46822"
 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.
 Fixes #42437.
 }}}

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


More information about the wp-trac mailing list