[wp-trac] [WordPress Trac] #15955: move_uploaded_file mangles non-ascii characters on Windows platforms

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 20:25:35 UTC 2012


#15955: move_uploaded_file mangles non-ascii characters on Windows platforms
--------------------------+------------------------------
 Reporter:  t31os_        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Upload        |     Version:  3.0.3
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------
Changes (by tar.gz):

 * cc: code@… (added)


Comment:

 Not sure if this is the same issue but: filenames with french accents in
 them - such as pièce-montée.jpg - are left as they are by WP. It would be
 safer to sanitize those filenames during upload, with accented characters
 being turned into the non-accented version: èéê becoming e, à becoming a,
 etc.

 For instance an image named image pièce-montée-236x177.jpg will display
 fine in Firefox or Chrome, as those browsers translate it into pie%CC
 %80ce-monte%CC%81e-236x177.jpg, but it's broken in Safari 5 (OSX).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15955#comment:19>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list