From: Eric Wong Date: Wed, 30 Sep 2015 21:17:14 +0000 (+0000) Subject: view: use '+' instead of '%20' to escape spaces in mailto: X-Git-Tag: v1.0.0~812 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6d4c168ed494d1f4681a00062aab92baff50e94a;p=public-inbox.git view: use '+' instead of '%20' to escape spaces in mailto: '+' is more shoter and more readable in query parameters than '%20' --- 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 ? '../' : '../../';