]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: use '+' instead of '%20' to escape spaces in mailto:
authorEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:17:14 +0000 (21:17 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:17:14 +0000 (21:17 +0000)
'+' is more shoter and more readable in query parameters than '%20'

lib/PublicInbox/View.pm

index 9ca4a6a419ab49e1b1c488783d880b36df5fe92f..07023e814516c40862ed32b0c2c86ebe7ba5f4db 100644 (file)
@@ -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 ? '../' : '../../';