aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2019-12-05 23:37:19 -0500
committerLibravatarUnit 193 <unit193@ubuntu.com>2019-12-05 23:37:19 -0500
commitd08cf88c37436ee7c7a54c5e963b42408f47732f (patch)
tree27631f1deb75cc7782e3f9901ce0de5727cbf0c3
parent46ee30ee282a55a403c38c4dd64f4f82b9ef8adf (diff)
downloadlistadmin-d08cf88c37436ee7c7a54c5e963b42408f47732f.tar.bz2
listadmin-d08cf88c37436ee7c7a54c5e963b42408f47732f.tar.xz
listadmin-d08cf88c37436ee7c7a54c5e963b42408f47732f.tar.zst
d/p/fix_failure_on_wide_character: Fix crash when viewing the body of certain messages.HEADmaster
Closes: 886247
-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