diff options
Diffstat (limited to 'debian/patches/fix_failure_on_wide_character')
-rw-r--r-- | debian/patches/fix_failure_on_wide_character | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fix_failure_on_wide_character b/debian/patches/fix_failure_on_wide_character new file mode 100644 index 0000000..08c01c1 --- /dev/null +++ b/debian/patches/fix_failure_on_wide_character @@ -0,0 +1,16 @@ +Description: Fix crash when viewing the body of certain messages. +Author: Unit 193 <unit193@ubuntu.com> +Bug-Debian: https://bugs.debian.org/886247 +Last-Update: 2019-12-06 + +--- listadmin-2.71.orig/listadmin.pl ++++ listadmin-2.71/listadmin.pl +@@ -587,7 +587,7 @@ _end_ + if ($mime_headers =~ /content-transfer-encoding:\s+(\S+)/i) { + my $cte = $1; + if ($cte =~ /quoted-printable/i) { +- $text = MIME::QuotedPrint::decode($text); ++ $text = MIME::QuotedPrint::decode(utf8::is_utf8($text) ? Encode::encode_utf8($text) : $text); + } elsif ($cte =~ /base64/i) { + # Don't bother with truncated lines. + $text =~ s!([A-Za-z0-9/+=]{72,76})!MIME::Base64::decode_base64($1)!ge; |