From 1430149a611cd510db36c69a3abe5d4ba4d486d0 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Sun, 25 May 2003 15:26:24 -0800 Subject: [PATCH] [project @ 2003-05-25 16:26:24 by cjwatson] Some people (e.g. #10486) seem to think it's a bright idea to use "Content-Type: text". Although that's not valid, pretend it's text/plain anyway since it's unlikely they managed to construct anything particularly exciting. --- cgi/bugreport.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi index 79c80d4a..a0d100b5 100755 --- a/cgi/bugreport.cgi +++ b/cgi/bugreport.cgi @@ -74,7 +74,7 @@ sub display_entity ($$$$\$\@) { $$this .= "\n"; } - unless (($top and $type =~ m[^text/plain(?:;|$)]) or + unless (($top and $type =~ m[^text(?:/plain)?(?:;|$)]) or ($type =~ m[^multipart/])) { push @$attachments, $entity; my @dlargs = ($ref, "msg=$xmessage", "att=$#$attachments"); @@ -98,7 +98,7 @@ sub display_entity ($$$$\$\@) { } return if $disposition eq 'attachment' and not defined($att); - return unless ($type =~ m[^text/] and $type !~ m[^text/html(?:;|$)]) or + return unless ($type =~ m[^text/?] and $type !~ m[^text/html(?:;|$)]) or $type =~ m[^application/pgp(?:;|$)] or $entity->is_multipart; -- 2.39.5