[wp-trac] [WordPress Trac] #16191: Uploaded files with quote marks in the filename are undisplayable in MS

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 11 19:28:50 UTC 2011


#16191: Uploaded files with quote marks in the filename are undisplayable in MS
---------------------------+-------------------------------------
 Reporter:  simonwheatley  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Upload         |    Version:
 Severity:  normal         |   Keywords:  has-patch, dev-feedback
---------------------------+-------------------------------------
 If you upload a file with quote marks in the filename, e.g. `"Test".jpg`,
 WordPress records the filename as `%22test%22.jpg` but the file is called
 `"Test".jpg` (on 'nix-like systems anyway) so is undisplayable.

 I'm unsure about the implications (security and otherwise) of my suggested
 patch (attached), so please give feedback. (I guess the other approach
 would be to retain the url-encoded characters and ensure that the file is
 named with the URL encoded version of the filename.)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16191>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list