From: cjwatson <> Date: Fri, 11 Jul 2003 07:29:41 +0000 (-0800) Subject: [project @ 2003-07-11 00:29:41 by cjwatson] X-Git-Tag: release/2.6.0~855 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8ffbc32add6e489c8b19a84da5bcc2ecac7a50c4;p=debbugs.git [project @ 2003-07-11 00:29:41 by cjwatson] Never treat the top-level message part as an attachment, no matter what the Content-Disposition: says (Daniel Stone). --- diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index bd5c5a63..aceacd92 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -97,7 +97,7 @@ sub display_entity ($$$$\$\@) { } } - return if $disposition eq 'attachment' and not defined($att); + return if not $top and $disposition eq 'attachment' and not defined($att); return unless ($type =~ m[^text/?] and $type !~ m[^text/html(?:;|$)]) or $type =~ m[^application/pgp(?:;|$)] or $entity->parts;