[wp-trac] [WordPress Trac] #18412: "%20" in an uploaded image file name breaks thumbnails

WordPress Trac noreply at wordpress.org
Mon Jun 30 08:07:09 UTC 2014


#18412: "%20" in an uploaded image file name breaks thumbnails
-----------------------------------------------------+------------------
 Reporter:  ripperdoc                                |       Owner:
     Type:  defect (bug)                             |      Status:  new
 Priority:  normal                                   |   Milestone:  4.0
Component:  Media                                    |     Version:  2.1
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch needs-unit-tests dev-feedback  |     Focuses:
-----------------------------------------------------+------------------

Comment (by mattheu):

 I think the underlying issue is the same as #16330 - the bug affects both
 uploading and sideloading.

 The solution I proposed there is that `sanitize_file_name` should replace
 `%20` with a `-` as it does with spaces. I think this is a better solution
 because if `%20` in filenames breaks things then it shouldn't be allowed.

 My patch on #16330 should fix the issues described in this ticket as well
 as sideload issues.

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


More information about the wp-trac mailing list