From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 792A3633808; Sat, 12 Mar 2016 07:38:02 +0000 (UTC) Date: Sat, 12 Mar 2016 07:38:02 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/1] feed: fix brain farts in new_oneline removal Message-ID: <20160312073802.GA20696@dcvr.yhbt.net> References: <20160312072538.10966-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160312072538.10966-1-e@80x24.org> List-Id: Ugh... Fixes: 476fc666c223 (reduce "PublicInbox::Hval->new_oneline" use) --- lib/PublicInbox/Feed.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index e4831f6..ec6925d 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -40,7 +40,7 @@ sub title_tag { my ($title) = @_; $title =~ tr/\t\n / /s; # squeeze spaces # try to avoid the type attribute in title: - $title =~ ascii_html($title); + $title = ascii_html($title); my $type = index($title, '&') >= 0 ? "\ntype=\"html\"" : ''; "$title"; } @@ -117,7 +117,7 @@ sub emit_html_index { my $max = $ctx->{max} || MAX_PER_PAGE; my $feed_opts = get_feedopts($ctx); - my $title = $feed_opts->{description} || ''; + my $title = ascii_html($feed_opts->{description} || ''); my ($footer, $param, $last); my $state = { ctx => $ctx, seen => {}, anchor_idx => 0 }; my $srch = $ctx->{srch}; -- EW