From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D9E2F201BC for ; Wed, 30 Sep 2015 21:18:53 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: use '+' instead of '%20' to escape spaces in mailto: Date: Wed, 30 Sep 2015 21:18:53 +0000 Message-Id: <20150930211853.4847-1-e@80x24.org> List-Id: '+' is more shoter and more readable in query parameters than '%20' --- lib/PublicInbox/View.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 9ca4a6a..07023e8 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 ? '../' : '../../'; -- EW