From: Eric Wong Date: Sat, 3 Dec 2016 00:24:51 +0000 (+0000) Subject: searchview: fix tag in Atom feed X-Git-Tag: v1.0.0~156 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=a0dabfcfce1f4dfc874ce933b416713007ab67bf;p=public-inbox.git 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. --- 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) {