[wp-trac] [WordPress Trac] #55807: sanitize_file_name not sanitizing decomposed unicode when file is uploaded using Chrome and Firefox
WordPress Trac
noreply at wordpress.org
Tue May 24 13:39:20 UTC 2022
#55807: sanitize_file_name not sanitizing decomposed unicode when file is uploaded
using Chrome and Firefox
----------------------------+-----------------------------
Reporter: christerolsson | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 5.9.3
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
sanitize_file_name does not sanitize decomposed unicode characters in a
file name when file is uploaded using Chrome and Firefox, it does work
just fine if the file is uploaded using Safari.
The problem probably only appears for macOS users since macOS seems to be
the only OS storing filenames in decomposed unicode.
Uploading räksmörgås.jpg with Safari correctly creates the file
raksmorgas.jpg while uploading with Chrome or Firefox creates the file
räksmörgås.jpg.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55807>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list