* [PATCH 2/1] feed: fix brain farts in new_oneline removal
@ 2016-03-12 7:38 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-03-12 7:38 UTC (permalink / raw)
To: meta
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$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};
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-03-12 7:25 [PATCH] reduce "PublicInbox::Hval->new_oneline" use Eric Wong
2016-03-12 7:38 7% ` [PATCH 2/1] feed: fix brain farts in new_oneline removal Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).