From 6d4c168ed494d1f4681a00062aab92baff50e94a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 30 Sep 2015 21:17:14 +0000 Subject: view: use '+' instead of '%20' to escape spaces in mailto: '+' is more shoter and more readable in query parameters than '%20' --- lib/PublicInbox/View.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 9ca4a6a4..07023e81 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -545,6 +545,7 @@ sub html_footer { my $cc = uri_escape_utf8(join(',', sort values %cc)); my $href = "mailto:$to?In-Reply-To=$irt&Cc=${cc}&Subject=$subj"; + $href =~ s/%20/+/g; my $srch = $ctx->{srch} if $ctx; my $upfx = $full_pfx ? '../' : '../../'; -- cgit v1.2.3-24-ge0c7