silverstripe / silverstripe-assets

Silverstripe Assets component
BSD 3-Clause "New" or "Revised" License
9 stars 66 forks source link

localized file names issue #182

Open a2nt opened 7 years ago

a2nt commented 7 years ago

If I will upload a file with localized name it will have wrong file name for example: "ûüù.jpg" will be saved as "jpg" which will make file extension undetectable.

tractorcow commented 7 years ago

I assume you discovered this in 3.x? 4.x will have a similar, yet different problem. :) Ideally these characters would be properly transliterated.

Related to https://github.com/silverstripe/silverstripe-framework/issues/6194

a2nt commented 7 years ago

yes, that's right. I think file name shall use file ID or some random name in case after removing localized chars file name is empty or transliterated it's security breach right now.