diff options
author | alecpl <alec@alec.pl> | 2010-06-30 09:44:33 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-06-30 09:44:33 +0000 |
commit | 3e58bf2062be1323d7c7c021d40255458e28e74d (patch) | |
tree | 3dbf02e291d694ec14d5668ff1c73772eefc9dfb /program | |
parent | 761894e65b7c021caa60a3f4ac9fd530cd501112 (diff) |
- Fix handling of messages with Content-Type: application/* and no filename (#1484050)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_message.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index c3753b290..fac7fe86b 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -488,6 +488,11 @@ class rcube_message else if ($structure->filename) { $this->attachments[] = $structure; } + // message is a single part non-text (without filename) + else if (preg_match('/application\//i', $mimetype)) { + $structure->filename = 'Part '.$structure->mime_id; + $this->attachments[] = $structure; + } } |