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

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 25 13:39:39 UTC 2011


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

Comment (by phogberg):

 Similar to this:

 Upload a file called a+b.jpg. The file will be stored on the filesystem as
 a+b.jpg, but the resulting attachment URL will be "http://example.com/wp-
 content/uploads/2011/04/a+b.jpg", which will point to a file named "a
 b.jpg" wich does not exist.

 The plus sign translates to a space in an urlencoded string. 16226.2.diff
 will probably solve this as well, but not patch 16226.diff.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16226#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list