]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: fix spaces in mailto: link
authorEric Wong <e@80x24.org>
Tue, 22 Nov 2016 02:49:40 +0000 (02:49 +0000)
committerEric Wong <e@80x24.org>
Tue, 22 Nov 2016 02:49:40 +0000 (02:49 +0000)
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.

lib/PublicInbox/View.pm

index 5d5808fad5b2176307e579d5108ad4e7284fd2db..2bfbb808c04a561f40114f60554bbccc9ed8e119 100644 (file)
@@ -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));
 }