]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/MID.pm
wwwstream: always show multi-line cloning instructions
[public-inbox.git] / lib / PublicInbox / MID.pm
index c82e84013ec0d68730423ab4b691074c5b690dc5..cd56f272613dc28551409593545eec5a2e80eb0e 100644 (file)
@@ -87,6 +87,7 @@ sub uniq_mids ($) {
        my @ret;
        my %seen;
        foreach my $mid (@$mids) {
+               $mid =~ tr/\n\t\r//d;
                if (length($mid) > MAX_MID_SIZE) {
                        warn "Message-ID: <$mid> too long, truncating\n";
                        $mid = substr($mid, 0, MAX_MID_SIZE);