[wp-trac] [WordPress Trac] #36549: Space in attachment filename breaks srcset

WordPress Trac noreply at wordpress.org
Thu May 19 12:40:24 UTC 2016


#36549: Space in attachment filename breaks srcset
--------------------------+------------------------------
 Reporter:  underdude     |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by joemcgill):

 [attachment:36549.2.diff] takes a similar approach to
 [attachment:36549.diff], but runs the image URL of each source in the
 `srcset` string through `esc_url()` right before it's returned. This
 should also catch any other strange characters that may have been included
 in filenames.

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


More information about the wp-trac mailing list