From: Eric Wong <e@80x24.org>
Date: Tue, 22 Nov 2016 02:49:40 +0000 (+0000)
Subject: view: fix spaces in mailto: link
X-Git-Tag: v1.0.0~160
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0cb5397f9ef26b22e529876ba904f1afe24f62da;p=public-inbox.git

view: fix spaces in mailto: link

Some mail clients do not seem to handle '+' as a space in query
parameters for the mail subject, use the more common '%20' for
compatibility.
---

diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 5d5808fa..2bfbb808 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -651,7 +651,6 @@ sub mailto_arg_link {
 	push(@arg, map { "--cc=$_" } @cc);
 	my $cc = uri_escape_utf8(join(',', @cc));
 	my $href = "mailto:$to?In-Reply-To=$irt&Cc=${cc}&Subject=$subj";
-	$href =~ s/%20/+/g;
 
 	(\@arg, ascii_html($href));
 }