[wp-trac] [WordPress Trac] #55274: Special chars in attachment filename breaks srcset

WordPress Trac noreply at wordpress.org
Mon Feb 28 09:38:44 UTC 2022


#55274: Special chars in attachment filename breaks srcset
--------------------------+------------------------
 Reporter:  dravnic       |       Owner:  audrasjb
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  6.0
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by dravnic):

 Please consider patches 55274.3.diff and 55274.2.2.diff (don't know how to
 remove 55274.diff and 55274.2.diff)

 rawurlencode is better to encode path names than urlencode. e.g. spaces
 will be converted to "%20" instead "+". As well updated unit test as there
 was a typo.

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


More information about the wp-trac mailing list