about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-12-03 00:24:51 +0000
committerEric Wong <e@80x24.org>2016-12-03 00:25:50 +0000
commita0dabfcfce1f4dfc874ce933b416713007ab67bf (patch)
treeffaa612760e9246d887d00df939d81c923b2f8a7 /lib/PublicInbox/SearchView.pm
parent58d16a4870defada082e0d5c4b9d24347d37c7be (diff)
downloadpublic-inbox-a0dabfcfce1f4dfc874ce933b416713007ab67bf.tar.gz
searchview: fix <title> 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.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r--lib/PublicInbox/SearchView.pm2
1 files changed, 1 insertions, 1 deletions
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</title>");
         $fh->write($x. PublicInbox::Feed::feed_updated());
 
         for ($mset->items) {