]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchMsg.pm
disallow "\t" and "\n" in OVER headers
[public-inbox.git] / lib / PublicInbox / SearchMsg.pm
index ab971e002d8a52846eaed9e83dacbab474e4f2d2..c7787ea1003db61221c6c2aa0d84ab41f60fd59d 100644 (file)
@@ -100,7 +100,7 @@ sub __hdr ($$) {
        my $mime = $self->{mime} or return;
        $val = $mime->header($field);
        $val = '' unless defined $val;
-       $val =~ tr/\n/ /;
+       $val =~ tr/\t\n/  /;
        $val =~ tr/\r//d;
        $self->{$field} = $val;
 }