From: Eric Wong Date: Mon, 27 Jun 2016 21:13:41 +0000 (+0000) Subject: view: HTML escape mailto: link X-Git-Tag: v1.0.0~349 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=5f3d08d721c371c00f6bd234f248ce45f137e181 view: HTML escape mailto: link Oops, we cannot have bare '&' in mailto: links, either. --- 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 {