about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-19 19:36:11 +0000
committerEric Wong <e@80x24.org>2015-08-19 19:36:11 +0000
commit289778885f8155fbd05a54ed4a84aeb724e68b04 (patch)
tree3109d75e49d959154e83accb176fc792822b3886 /lib
parent9028c794d0cba5b4eca6cd69702e3bc163567469 (diff)
downloadpublic-inbox-289778885f8155fbd05a54ed4a84aeb724e68b04.tar.gz
Sometimes we have filter bugs and let HTML slip through...
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 5aab609d..b3545a4a 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -197,7 +197,7 @@ sub index_walk {
         my $ct = $part->content_type;
 
         # account for filter bugs...
-        return if defined $ct && $ct =~ m!\btext/[xh]+tml\b!i;
+        return '' if defined $ct && $ct =~ m!\btext/[xh]+tml\b!i;
 
         my $enc = enc_for($ct, $enc_msg);