From: lpsolit%gmail.com <> Date: Sat, 26 Jan 2008 16:42:58 +0000 (+0000) Subject: Bug 413672: email_in.pl incorrectly rejects quoted charsets - Patch by Frédéric... X-Git-Tag: bugzilla-3.0.4~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88f9582c5ac41ea0a6e80455f3c2af9018474993;p=thirdparty%2Fbugzilla.git Bug 413672: email_in.pl incorrectly rejects quoted charsets - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/email_in.pl b/email_in.pl index 21d38ceb5b..6f66105738 100644 --- a/email_in.pl +++ b/email_in.pl @@ -297,7 +297,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);