- Allow underline in content-type name, per comments in #1487051

release-0.6
alecpl 14 years ago
parent 435c315223
commit 8bac7e988f

@ -469,7 +469,7 @@ class rcube_message
$this->parse_structure($mail_part, true);
}
// is a regular attachment
else if (preg_match('!^[a-z0-9-.+]+/[a-z0-9-.+]+$!i', $part_mimetype)) {
else if (preg_match('!^[a-z0-9-.+_]+/[a-z0-9-.+_]+$!i', $part_mimetype)) {
if (!$mail_part->filename)
$mail_part->filename = 'Part '.$mail_part->mime_id;
$this->attachments[] = $mail_part;

Loading…
Cancel
Save