about summary refs log tree commit homepage
path: root/lib/PublicInbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-17 05:39:06 +0000
committerEric Wong <e@80x24.org>2016-05-17 05:39:14 +0000
commitc1e768a619b01498ec391431e5fa31221aca89a7 (patch)
tree4e7aeb24a0207684fa444937a8d2e2798154d452 /lib/PublicInbox
parent19e00ca1a6aab8e59f74241fcdfbb768785ff2ff (diff)
downloadpublic-inbox-c1e768a619b01498ec391431e5fa31221aca89a7.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r--lib/PublicInbox/View.pm3
1 files changed, 2 insertions, 1 deletions
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 .= "<a\nhref=\"$upfx$next/\"\nrel=next>next</a> ";
+                        my $n = PublicInbox::Hval->new_msgid($next)->as_href;
+                        $irt .= "<a\nhref=\"$upfx$n/\"\nrel=next>next</a> ";
                 } else {
                         $irt .= ' ' x length('next ');
                 }