summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Droogmans2012-10-09 17:21:26 (GMT)
committerPeter Droogmans2012-10-09 17:21:26 (GMT)
commitc302a2dae508b3faf4f82aca7c3a6299de71f5e5 (patch)
tree77b341aed36b524691f151bbe08be761902e48ea
parent159155eb5feecfbba4eb444c492b303a7c9b0073 (diff)
Issue #1806542 by Ivanhoe123: Fixed Transliteration of file names doesn't work.
-rw-r--r--multifile.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/multifile.inc b/multifile.inc
index afc68b6..4ef678b 100644
--- a/multifile.inc
+++ b/multifile.inc
@@ -802,10 +802,10 @@ function _webform_multifile_convert_files_array($form_key) {
foreach ($_FILES['files']['type'][$form_key] as $key => $empty) {
$newkey = $form_key . $key;
if (!empty($_FILES['files']['orig_name'][$form_key][$key])) {
- $_FILES['files']['name'][$newkey] = _webform_multifile_get_files_array_value($_FILES['files']['orig_name'][$form_key][$key], $form_key);
+ $_FILES['files']['name'][$newkey] = transliteration_clean_filename(_webform_multifile_get_files_array_value($_FILES['files']['orig_name'][$form_key][$key], $form_key));
}
else {
- $_FILES['files']['name'][$newkey] = _webform_multifile_get_files_array_value($_FILES['files']['name'][$form_key][$key], $form_key);
+ $_FILES['files']['name'][$newkey] = transliteration_clean_filename(_webform_multifile_get_files_array_value($_FILES['files']['name'][$form_key][$key], $form_key));
}
foreach ($file_properties as $file_property) {
$_FILES['files'][$file_property][$newkey] = _webform_multifile_get_files_array_value($_FILES['files'][$file_property][$form_key][$key], $form_key);