Corrected issue forwarding attachments that use content-description rather than filename or name disposition headers
| | |
| | | $_SESSION['compose']['attachments'][] = array('name' => $part->ctype_parameters['name'], |
| | | 'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary, |
| | | 'path' => $tmp_path); |
| | | |
| | | else if ($part->headers['content-description']) |
| | | $_SESSION['compose']['attachments'][] = array('name' => $part->headers['content-description'], |
| | | 'mimetype' => $part->ctype_primary . '/' . $part->ctype_secondary, |
| | | 'path' => $tmp_path); |
| | | } |
| | | } |
| | | } |