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

WordPress Trac noreply at wordpress.org
Thu Jan 25 21:12:38 UTC 2018


#42437: Thumbnails can overwrite other uploads if filename matches
--------------------------+-----------------------------
 Reporter:  Viper007Bond  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Upload        |     Version:  4.8.3
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------
Changes (by azaozz):

 * milestone:  Awaiting Review => Future Release


Comment:

 Replying to [comment:4 blobfolio]:

 Yep, thinking that will work for this edge case. Alternatively (as
 discussed in #core-media on Slack) we can have a more stringent name check
 that looks into the names for sub-sizes that will be generated from the
 uploaded image. It would add `-1`, `-2`, etc. to the original image name
 if a possible conflict with the names of the sub-sizes is detected.

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


More information about the wp-trac mailing list