aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/patches/fix_failure_on_wide_character16
-rw-r--r--debian/patches/series1
2 files changed, 17 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;
diff --git a/debian/patches/series b/debian/patches/series
index 15ccd08..7d58713 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
follow_https_redirects
insecure_use_of_tmp
+fix_failure_on_wide_character