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

WordPress Trac noreply at wordpress.org
Mon Nov 18 20:46:38 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):

 Patch updated. This now gives correct results:
 {{{
 sanitize_file_name(
 "A.String.With.Many.Dots.gif.gif.gif.ÖÑÉ.twõ.très.fö.ür" );
  --> string(61)
 "a.string.with_.many_.dots_.gif.gif.gif.one_.two_.tres_.fo_.ur"}}}

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


More information about the wp-trac mailing list