mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
Fix file upload in international charsets (Farsi) - use existing egw_vfs::basename() instead
This commit is contained in:
parent
eade44ec57
commit
952d6f8801
@ -140,9 +140,8 @@ 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(
|
||||||
// Prepend space to avoid UTF8 issues, from
|
// Use egw_vfs to avoid UTF8 / non-ascii issues
|
||||||
// http://www.php.net/manual/en/function.basename.php#109518
|
'name' => egw_vfs::basename($file['name']),
|
||||||
'name' => ltrim(basename(' '.$file['name'])),
|
|
||||||
'type' => $file['type']
|
'type' => $file['type']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user