[wp-trac] [WordPress Trac] #63585: Common MacOS unicode characters in filenames break
WordPress Trac
noreply at wordpress.org
Tue Jun 17 18:37:16 UTC 2025
#63585: Common MacOS unicode characters in filenames break
--------------------------+------------------------------
Reporter: matt | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by audrasjb):
Hello and thanks for the report,
It looks like ` ` (Narrow No-Break Space) is handled in
`sanitize_title_with_dashes()`: https://github.com/WordPress/wordpress-
develop/blob/6.8/src/wp-includes/formatting.php#L2360
As soon as this function is used by `sanitize_file_name()`, I would assume
that this character should be handled just fine when uploading a media,
but it seems like it's not the case. Maybe it's related to the conditional
using `seems_utf8()` to determine whether `sanitize_title_with_dashes()`
should be applied or not.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63585#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list