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

WordPress Trac noreply at wordpress.org
Tue May 15 22:13:33 UTC 2018


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

Comment (by joemcgill):

 The best way I can think of avoiding these kinds of conflicts is to add a
 short hash to filenames of intermediate image sizes to ensure that this is
 unique. The main question would be whether it would be whether we needed
 to build that hash from something that is unchanging (e.g. the original
 file name) rather than something that could change (e.g., current server
 time) so that regenerating images would result in consistent image file
 names as ones already used in post content.

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


More information about the wp-trac mailing list