[wp-trac] [WordPress Trac] #22363: Accents in attachment filenames should be sanitized
WordPress Trac
noreply at wordpress.org
Thu Nov 22 13:40:43 UTC 2012
#22363: Accents in attachment filenames should be sanitized
--------------------------+------------------------------
Reporter: tar.gz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version: 3.4
Severity: normal | Resolution:
Keywords: |
--------------------------+------------------------------
Comment (by tar.gz):
Ok, so I attempted a rudimentary patch, by adding a `remove_accents()`
step at the beginning of `wp_unique_filename()`, in `wp-
includes/functions.php`.
Like, adding
{{{
$filename = remove_accents($filename);
}}}
just after line 1606.
But no luck, this doesn't work, it doesn't change anything. A file named
"moiré.jpg" still keeps the accent after being uploaded.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22363#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list