From a0dabfcfce1f4dfc874ce933b416713007ab67bf Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 3 Dec 2016 00:24:51 +0000 Subject: searchview: fix tag in Atom feed This only affects the Atom feed for search results. "xmlstarlet val" failed to detect or warn about this, and I only noticed this bug while working on another patch. --- lib/PublicInbox/SearchView.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index ebeb41f7..fbba9c49 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -220,7 +220,7 @@ sub adump { $x = qq{$x - search results}; $feed_opts->{atomurl} = $feed_opts->{url} . '?'. $q->qs_html; $feed_opts->{url} .= '?'. $q->qs_html(x => undef); - $x = PublicInbox::Feed::atom_header($feed_opts, $x); + $x = PublicInbox::Feed::atom_header($feed_opts, "<title>$x"); $fh->write($x. PublicInbox::Feed::feed_updated()); for ($mset->items) { -- cgit v1.2.3-24-ge0c7