about summary refs log tree commit homepage
path: root/lib/PublicInbox/Feed.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-12 07:34:20 +0000
committerEric Wong <e@80x24.org>2016-03-12 07:34:20 +0000
commit3a8265c85b219e92f71d50faa8dda79c7dbbcecc (patch)
tree51145c39f02701a3b18da0c1eee6a26f8709bbae /lib/PublicInbox/Feed.pm
parentf4af1462c2e52a5f4ed8b7de855868b8d457627e (diff)
downloadpublic-inbox-3a8265c85b219e92f71d50faa8dda79c7dbbcecc.tar.gz
Ugh...

Fixes: 476fc666c223 (reduce "PublicInbox::Hval->new_oneline" use)
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r--lib/PublicInbox/Feed.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index e4831f6a..ec6925dd 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$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};