about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/View.pm4
-rw-r--r--t/psgi_bad_mids.t2
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index c80a675e..17d38302 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -1154,10 +1154,8 @@ sub dump_topics {
                         $anchor = '#t'; # thread skeleton
                 }
 
-                my $mbox = qq(<a\nhref="$href/t.mbox.gz">mbox.gz</a>);
-                my $atom = qq(<a\nhref="$href/t.atom">Atom</a>);
                 my $s = "<a\nhref=\"$href/T/$anchor\">$top_subj</a>\n" .
-                        " $ds UTC $n - $mbox / $atom\n";
+                        " $ds UTC $n\n";
                 for (my $i = 0; $i < scalar(@extra); $i += 2) {
                         my $level = $extra[$i];
                         my $subj = $extra[$i + 1]; # already normalized
diff --git a/t/psgi_bad_mids.t b/t/psgi_bad_mids.t
index f92e4f97..8e531b54 100644
--- a/t/psgi_bad_mids.t
+++ b/t/psgi_bad_mids.t
@@ -53,7 +53,7 @@ test_psgi(sub { $www->call(@_) }, sub {
                 ok(index($raw, $mid) < 0, "escaped $mid");
         }
 
-        my (@xmids) = ($raw =~ m!\bhref="([^"]+)/t\.mbox\.gz"!sg);
+        my (@xmids) = ($raw =~ m!\bhref="([^"]+?)/T/#u"!sg);
         is(scalar(@xmids), scalar(@mids),
                 'got escaped links to all messages');