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

WordPress Trac noreply at wordpress.org
Sun Oct 2 12:57:42 UTC 2016


#22363: Accents in attachment filenames should be sanitized
-------------------------------------+---------------------------
 Reporter:  tar.gz                   |       Owner:  mikeschroder
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  4.7
Component:  Media                    |     Version:  3.4
 Severity:  critical                 |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+---------------------------

Comment (by swissspidy):

 > The issue is that Safari always normalizes filenames to NFC. This causes
 problems if files are uploaded using other browsers (which don't
 normalize) and then viewed in Safari. The "correct" fix would be to
 likewise normalize filenames to NFC in `sanitize_file_name()`. As core
 doesn't have this facility (yet!), the workaround of using
 `remove_accents()` as a sort of poor man's normalizer seems good.

 Related: #30130

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


More information about the wp-trac mailing list