Commit 4753a099 authored by jake%bugzilla.org's avatar jake%bugzilla.org

Bug 190521 - If the attachment didn't have a Content-Description: header in the…

Bug 190521 - If the attachment didn't have a Content-Description: header in the e-mail, it ended up not having a description in Bugzilla leaving nothing to click on in the Attachment table on the bug form. r=jake a=justdave
parent e7282d67
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
# #
# You need to work with bug_email.pl the MIME::Parser installed. # You need to work with bug_email.pl the MIME::Parser installed.
# #
# $Id: bug_email.pl,v 1.14 2002/09/22 17:15:03 bugreport%peshkin.net Exp $ # $Id: bug_email.pl,v 1.15 2003/01/25 04:39:14 jake%bugzilla.org Exp $
############################################################### ###############################################################
# 02/12/2000 (SML) # 02/12/2000 (SML)
...@@ -640,7 +640,8 @@ sub dump_entity { ...@@ -640,7 +640,8 @@ sub dump_entity {
if( $msg_part =~ /^attachment/ ) { if( $msg_part =~ /^attachment/ ) {
# Attached File # Attached File
my $des = $entity->head->get('Content-Description'); my $des = $entity->head->get('Content-Description');
$des ||= ""; $des ||= $entity->head->recommended_filename;
$des ||= "unnamed attachment";
if( defined( $body->path )) { # Data is on disk if( defined( $body->path )) { # Data is on disk
$on_disk = 1; $on_disk = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment