[wp-trac] [WordPress Trac] #16226: Attachment URL filenames are not urlencoded

WordPress Trac noreply at wordpress.org
Thu Mar 19 20:22:33 UTC 2015


#16226: Attachment URL filenames are not urlencoded
------------------------------------+-----------------------
 Reporter:  mdawaffe                |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:
Component:  Upload                  |     Version:  3.1
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------

Comment (by mordauk):

 [https://core.trac.wordpress.org/attachment/ticket/16226/16226.patch
 16226.patch] is a refreshed patch that applies cleanly.

 [https://core.trac.wordpress.org/attachment/ticket/16226/16226-tests.patch
 16226-tests.patch] refreshes unit tests so they pass properly.

 The only issue I see with this is that encoded spaces and other characters
 (such as `%20`) get their `%` removed but leave the rest. This means that
 `multi %20 +space.png` becomes `multi-20-space.png`.

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


More information about the wp-trac mailing list