[wp-trac] [WordPress Trac] #53575: Filename creation with special characters fails
WordPress Trac
noreply at wordpress.org
Sat Jul 3 20:48:03 UTC 2021
#53575: Filename creation with special characters fails
--------------------------+-------------------------
Reporter: mac79 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upload | Version: 5.7.2
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+-------------------------
Changes (by azaozz):
* status: new => closed
* resolution: => worksforme
* milestone: Awaiting Review =>
Comment:
Hi @mac79, thanks for the bug report.
File names with special characters are a bit tricky. WordPress tries to
sanitize them so they are compatible with all OS (MacOS, Windows, Linux,
Android, iOS, etc.), all languages/locales, and with web use/HTML.
The last change to the list of illegal characters that added curly quotes
was about a year ago, see #50231. Also see
https://developer.wordpress.org/reference/functions/sanitize_file_name/
for the whole list. Best would be to rename your files before uploading
and avoid these chars.
Closing as worksforme as this is a feature, not a bug. If you believe the
patch on #50231 should be reverted feel free to reopen this ticket with
reasons, examples, etc.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53575#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list