]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2003-07-11 00:29:41 by cjwatson]
authorcjwatson <>
Fri, 11 Jul 2003 07:29:41 +0000 (23:29 -0800)
committercjwatson <>
Fri, 11 Jul 2003 07:29:41 +0000 (23:29 -0800)
Never treat the top-level message part as an attachment, no matter what the
Content-Disposition: says (Daniel Stone).

cgi/bugreport.cgi

index bd5c5a639bb071c6adf0136ca8c8e7edc780d785..aceacd922429fe5d160e631e70a944d4e471c283 100755 (executable)
@@ -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;