From 5f3d08d721c371c00f6bd234f248ce45f137e181 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Jun 2016 21:13:41 +0000 Subject: view: HTML escape mailto: link Oops, we cannot have bare '&' in mailto: links, either. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5dd586c9..30339cd4 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -496,7 +496,7 @@ sub mailto_arg_link { my $href = "mailto:$to?In-Reply-To=$irt&Cc=${cc}&Subject=$subj"; $href =~ s/%20/+/g; - (\@arg, $href); + (\@arg, ascii_html($href)); } sub html_footer { -- cgit v1.2.3-24-ge0c7