From 8b2ddfdf331b775c29f41aff7828e076f4be13f1 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sat, 26 Jan 2008 10:42:58 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20413672:=20email=5Fin.pl=20incorrectly=20r?= =?UTF-8?q?ejects=20quoted=20charsets=20-=20Patch=20by=20Fr=C3=83=C2=A9d?= =?UTF-8?q?=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@244047 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/email_in.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/email_in.pl b/mozilla/webtools/bugzilla/email_in.pl index 02d00a3e215..ca7a2973506 100755 --- a/mozilla/webtools/bugzilla/email_in.pl +++ b/mozilla/webtools/bugzilla/email_in.pl @@ -294,7 +294,8 @@ sub get_text_alternative { foreach my $part (@parts) { my $ct = $part->content_type || 'text/plain'; my $charset = 'iso-8859-1'; - if ($ct =~ /charset=([^;]+)/) { + # The charset may be quoted. + if ($ct =~ /charset="?([^;"]+)/) { $charset= $1; } debug_print("Part Content-Type: $ct", 2);