[wp-trac] [WordPress Trac] #54190: sanitize_file_name disallows acute accents and left smart apostrophe
WordPress Trac
noreply at wordpress.org
Wed Oct 4 19:21:40 UTC 2023
#54190: sanitize_file_name disallows acute accents and left smart apostrophe
---------------------------------------------+-----------------------------
Reporter: jdorner | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 5.5
Severity: normal | Resolution:
Keywords: dev-feedback needs-testing-info | Focuses:
---------------------------------------------+-----------------------------
Comment (by Presskopp):
Hi @antpb , I'm not sure if I get you right. This is the function as of
today:
{{{#!php
$special_chars = array( '?', '[', ']', '/', '\\', '=', '<', '>', ':', ';',
',', "'", '"', '&', '$', '#', '*', '(', ')', '|', '~', '`', '!', '{', '}',
'%', '+', '’', '«', '»', '”', '“', chr( 0 ) );
}}}
and I just added
{{{#!php
'´', '^', '@', '%', '&', '*', '+', '=', '|', '{', '}','(', ')', '[', ']',
'<', '>', ',', ':', ';','"', '\'', '~', '`', '#', '$','£', '€', '¥', '¦',
'§', '¨', '©', 'ª', '¬', '®', '¯', '°', '±', '²', '³','µ', '¶', '·', '¸',
'¹', 'º', '¼', '½', '¾', '¿', '×', '÷'
}}}
But I don't claim that addition to be complete.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54190#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list