]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: HTML escape mailto: link
authorEric Wong <e@80x24.org>
Mon, 27 Jun 2016 21:13:41 +0000 (21:13 +0000)
committerEric Wong <e@80x24.org>
Mon, 27 Jun 2016 21:17:31 +0000 (21:17 +0000)
Oops, we cannot have bare '&' in mailto: links, either.

lib/PublicInbox/View.pm

index 5dd586c9a2feaa276dc44b1a7af3f5d20db2f998..30339cd4cff30f74deb6fed16d3de09256c5848a 100644 (file)
@@ -496,7 +496,7 @@ sub mailto_arg_link {
        my $href = "mailto:$to?In-Reply-To=$irt&Cc=${cc}&Subject=$subj";
        $href =~ s/%20/+/g;
 
        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 {
 }
 
 sub html_footer {