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

WordPress Trac noreply at wordpress.org
Tue Oct 13 03:21:15 UTC 2015


#16226: Attachment URL filenames are not urlencoded
--------------------------+-----------------------------
 Reporter:  mdawaffe      |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Upload        |     Version:  3.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35122"]:
 {{{
 #!CommitTicketReference repository="" revision="35122"
 Fotmatting: in `sanitize_file_name()`, escape `%` when uploads contain
 them, otherwise attachment URLs will unescape the char and break.

 Adds unit tests.

 Props mordauk, simonwheatley, dd32, solarissmoke.
 Fixes #16226.
 }}}

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


More information about the wp-trac mailing list