[wp-trac] [WordPress Trac] #22363: Accents in attachment filenames should be sanitized

WordPress Trac noreply at wordpress.org
Sun Nov 17 20:59:42 UTC 2013


#22363: Accents in attachment filenames should be sanitized
----------------------------------------+------------------
 Reporter:  tar.gz                      |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  3.8
Component:  Upload                      |     Version:  3.4
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+------------------

Comment (by p_enrique):

 tar.gz: They don't produce malformed slugs because sanitize_post_title()
 urlencodes everything that's not ASCII. This works great for anything
 that's an URL. But the mechanism cannot be used for file names, since the
 browser cannot access a file that has a urlencoded file name as I point
 out in [http://core.trac.wordpress.org/ticket/22363#comment:32
 #comment:32].

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


More information about the wp-trac mailing list