From d0aa081697fcdc51fc24fa268f13a8d130366b36 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Thu, 31 May 2012 14:56:47 -0400 Subject: [PATCH] Convert the content-transfer-encoding to lower-case always. --- docs/contrib/replyfilter | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/contrib/replyfilter b/docs/contrib/replyfilter index 8e591bd..ed4fe6b 100755 --- a/docs/contrib/replyfilter +++ b/docs/contrib/replyfilter @@ -193,7 +193,7 @@ sub process_text (*$$;$) binmode($input, ':encoding(us-ascii)'); - $decoder = find_decoder($encoding); + $decoder = find_decoder(lc($encoding)); if (! defined $decoder) { return 'EOF'; } @@ -348,7 +348,7 @@ sub process_html (*$$;$) my $filterpid, $prefixpid, $finread, $finwrite; my $foutread, $foutwrite, $decoder, $ret; - if (! defined($decoder = find_decoder($encoding))) { + if (! defined($decoder = find_decoder(lc($encoding)))) { return 'EOF'; } -- 1.7.10.4