Closed (duplicate)
Project:
Drupal core
Version:
6.4
Component:
upload.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2008 at 16:18 UTC
Updated:
30 Sep 2008 at 16:27 UTC
This bug was first mentioned, in the Swedish Drupal Group, by rtauson.
Uploading a file called åäö.txt (Swedish letters) results in the file getting renamed to 'txt.'. The expected filename would 'åäö.txt' (ie. unchanged). The good thing is that the link to the file still works so this is not critical.
At first I thought the upload.core module filtered out non-[A-z]-letters but uploading a file named 'Bokstaven å va dä på en ö sa han.txt' yielded an uploaded file with the exact same name (and with a linked that worked perfectly).
One workaround that currently works is to use Translitteration, mentioned here (in Swedish).
Comments
Comment #1
damien tournoud commentedPlease see #278425: Using basename() is not locale safe.