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

WordPress Trac noreply at wordpress.org
Thu May 17 10:31:36 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 azaozz):

 Ugh, sorry about the long post :)

 The tl;dr version:
 - If we don't check for collisions for all file names when uploading a
 file (original file name plus all sub-sizes file names), we will never
 eliminate these collisions 100%.
 - Adding hashes to all sub-size file names makes for ugly URLs to them.
 "Pretty" URLs are quite important for readability and SEO.

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


More information about the wp-trac mailing list