From c1e768a619b01498ec391431e5fa31221aca89a7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 17 May 2016 05:39:06 +0000 Subject: view: escape Message-ID for "next" link Oops, we need to escape Message-IDs since they can contain bad characters such as '%' in them. '@' actually seems fine and does not need to be escaped; however, but we've been doing it forever. --- lib/PublicInbox/View.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index d559cae4..3fa7cfc2 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -518,7 +518,8 @@ sub html_footer { $irt = ' ' x length('parent '); } if ($next) { - $irt .= "next "; + my $n = PublicInbox::Hval->new_msgid($next)->as_href; + $irt .= "next "; } else { $irt .= ' ' x length('next '); } -- cgit v1.2.3-24-ge0c7