diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-06-09 15:40:41 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-06-09 15:40:41 +0200 |
commit | 49224720be7041b0865dd5d776da3513fd69035a (patch) | |
tree | 4ba9d9d50bc97519ab95291e9521f8931aed9e14 /plugins | |
parent | 60b6d7c3894f61eb9c8bc40efe5528e91386bf94 (diff) |
Fix zipdownload plugin issue with filenames charset (#1489156)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/zipdownload/zipdownload.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/zipdownload/zipdownload.php b/plugins/zipdownload/zipdownload.php index fbf1d2342..59431267d 100644 --- a/plugins/zipdownload/zipdownload.php +++ b/plugins/zipdownload/zipdownload.php @@ -108,7 +108,7 @@ class zipdownload extends rcube_plugin foreach ($message->attachments as $part) { $pid = $part->mime_id; $part = $message->mime_parts[$pid]; - $disp_name = $this->_convert_filename($part->filename, $part->charset); + $disp_name = $this->_convert_filename($part->filename); if ($part->body) { $orig_message_raw = $part->body; @@ -263,9 +263,9 @@ class zipdownload extends rcube_plugin /** * Helper function to convert filenames to the configured charset */ - private function _convert_filename($str, $from = RCUBE_CHARSET) + private function _convert_filename($str) { - $str = rcube_charset::convert($str, $from == '' ? RCUBE_CHARSET : $from, $this->charset); + $str = rcube_charset::convert($str, RCUBE_CHARSET, $this->charset); return strtr($str, array(':'=>'', '/'=>'-')); } |