]> Sergey Matveev's repositories - public-inbox.git/commitdiff
feed: fix brain farts in new_oneline removal
authorEric Wong <e@80x24.org>
Sat, 12 Mar 2016 07:34:20 +0000 (07:34 +0000)
committerEric Wong <e@80x24.org>
Sat, 12 Mar 2016 07:34:20 +0000 (07:34 +0000)
Ugh...

Fixes: 476fc666c223 (reduce "PublicInbox::Hval->new_oneline" use)
lib/PublicInbox/Feed.pm

index e4831f6a66a68d85691579eda43f6a6046e8fec5..ec6925dd142eea40f2c33c2c7ce6408ef9e06c8a 100644 (file)
@@ -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$type>$title</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};