From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DBFCF1FC96 for ; Sat, 3 Dec 2016 00:28:22 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] searchview: fix tag in Atom feed Date: Sat, 3 Dec 2016 00:28:22 +0000 Message-Id: <20161203002822.16541-1-e@80x24.org> List-Id: <meta@public-inbox.org> 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(-) diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index ebeb41f..fbba9c4 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) { -- EW