mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
Fix file upload in international charsets (Farsi)
This commit is contained in:
parent
26ddd1bfaa
commit
eade44ec57
@ -140,7 +140,9 @@ class etemplate_widget_file extends etemplate_widget
|
|||||||
// Data to send back to client
|
// Data to send back to client
|
||||||
$temp_name = basename($file['tmp_name']);
|
$temp_name = basename($file['tmp_name']);
|
||||||
$file_data[$temp_name] = array(
|
$file_data[$temp_name] = array(
|
||||||
'name' => basename($file['name']),
|
// Prepend space to avoid UTF8 issues, from
|
||||||
|
// http://www.php.net/manual/en/function.basename.php#109518
|
||||||
|
'name' => ltrim(basename(' '.$file['name'])),
|
||||||
'type' => $file['type']
|
'type' => $file['type']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user