diff options
author | Eric Wong <e@80x24.org> | 2016-03-03 03:16:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-03-03 03:21:27 +0000 |
commit | 3cda6050b7c8f73e7fd86f88efc5cd42d0c13f73 (patch) | |
tree | cb2eb271eb7c24235889da1ef7dbd2b3458351dc /lib/PublicInbox/Feed.pm | |
parent | 2d7d6d91b8894052b8b6088defaf7ea1711eba06 (diff) | |
download | public-inbox-3cda6050b7c8f73e7fd86f88efc5cd42d0c13f73.tar.gz |
Message-IDs should not be MIME encoded, but in case they are, use the raw form for compatibility with ssoma and possibly other tools. This prevents a potential problem where a malicious client could confuse our storage layer into indexing incorrect contents.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 54cbf23c..65375fad 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -320,7 +320,7 @@ sub add_to_feed { my $midurl = $feed_opts->{midurl}; my $header_obj = $mime->header_obj; - my $mid = $header_obj->header('Message-ID'); + my $mid = $header_obj->header_raw('Message-ID'); defined $mid or return 0; $mid = PublicInbox::Hval->new_msgid($mid); my $href = $mid->as_href; |