* [PATCH] view: return empty string to avoid undefined values
@ 2015-08-19 19:51 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-08-19 19:51 UTC (permalink / raw)
To: meta
Sometimes we have filter bugs and let HTML slip through...
---
lib/PublicInbox/View.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 5aab609..b3545a4 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);
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-19 19:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 19:51 [PATCH] view: return empty string to avoid undefined values Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).