diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-10 15:15:54 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-10 15:17:41 +0200 |
commit | 1983f3f0dbbbbcedf99f48602c10b3916c1fb53b (patch) | |
tree | 6cfe0bae44509bee88bbe5b28e019f4c899b8a32 | |
parent | 6717b0f0864a954921f4148923207791b273dfb7 (diff) | |
download | perlisdead-1983f3f0dbbbbcedf99f48602c10b3916c1fb53b.tar.gz |
p5p: Fix subject encoding
nntp.perl.org doesn't add a space after Re:, which causes issues
for Email::MIME::RFC2047::Decoder.
-rwxr-xr-x | run/p5p | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -37,6 +37,7 @@ for my $alt (@alt) { $f{$id} =~ s,@[^.]*\.,@<i>hidden</i>.,; $s{$id} = '(no subject)' if not exists $s{$id}; + $s{$id} =~ s/Re:=\?/Re: =?/; # fix encoding $s{$id} = $decoder->decode_text($s{$id}); $s{$id} = encode_entities($s{$id}); |