From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B41F91FEEF for ; Tue, 22 Nov 2016 02:52:54 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: fix spaces in mailto: link Date: Tue, 22 Nov 2016 02:52:54 +0000 Message-Id: <20161122025254.22427-1-e@80x24.org> List-Id: 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 | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5d5808f..2bfbb80 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)); } -- EW