?? ?? a écrit :
> Hi to everyone,
>
> My name is Tsujimoto,translator of the GLPI internationalisation ja_JP.
>
> We have an issue in keeping and managing documents in GLPI.
> When we upload documents with a file name of 2 bytes from Windows PC, the 
> file name has been transformed into meaningless word(but we can download them 
> normally).
> Japanese language needs 2 bytes, therefore, this is a crucial issue to GLPI 
> usage for Japanese language user.
> It would be very much appreciated if you provide us with a solution for this 
> issue.
>   

Hi,

For security reason we clean filename before saving it using this function :
/**
* Clean a filename to keep alphanum chars + -_.
*
* @param name filename to clean
**/
function cleanFilenameDocument($name){
return preg_replace("/[^a-zA-Z0-9\-_\.]/","_",$name);
}


You can modify it for the moment.
After we can study the fact that this cleaning is optional or find 
another cleaning process.

What do you think about that ?

Regards

Julien


_______________________________________________
Glpi-user mailing list
[email protected]
https://mail.gna.org/listinfo/glpi-user

Reply via email to