[wp-trac] [WordPress Trac] #35951: remove_accents() doesn't escape Unicode NFD characters
WordPress Trac
noreply at wordpress.org
Wed Aug 10 12:44:42 UTC 2016
#35951: remove_accents() doesn't escape Unicode NFD characters
-------------------------------+------------------------------
Reporter: onnimonni | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Charset | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by zodiac1978):
Replying to [comment:1 johnbillion]:
> Out of interest, how are you interacting with an HFS filesystem? Are you
copying files from a volume that uses HFS? AFAIK, you cannot run OS X on
HFS.
>
> I would hazard a guess that this is a limited edge case (not saying it's
not a bug, just that it's likely a very uncommon situation to find
yourself in).
The problem with NFD is true for HFS and HFS+, see:
https://en.wikipedia.org/wiki/HFS_Plus#Design
And HFS+ is the default filesystem for all Mac OS X computers.
This patch would fix it, as it adds the mentioned `normalizer` function
from PHP (if it exists) to the `sanitize_filename` filter:
https://core.trac.wordpress.org/attachment/ticket/30130/30130.2.diff
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35951#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list