X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FReply.pm;h=5058ff8c39b51edd13a5bd2a833c6d9f99ce5480;hb=0d38f65c490466837ae091afa7a7b6f59d04ce7c;hp=0517057ac1da126b97974ef73abb650352869590;hpb=9bd675d33ad1e49bd2ebe12a1d216216e61380de;p=public-inbox.git diff --git a/lib/PublicInbox/Reply.pm b/lib/PublicInbox/Reply.pm index 0517057a..5058ff8c 100644 --- a/lib/PublicInbox/Reply.pm +++ b/lib/PublicInbox/Reply.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2014-2019 all contributors +# Copyright (C) 2014-2020 all contributors # License: AGPL-3.0+ # For reply instructions and address generation in WWW UI @@ -6,9 +6,9 @@ package PublicInbox::Reply; use strict; use warnings; use URI::Escape qw/uri_escape_utf8/; -use PublicInbox::Hval qw/ascii_html obfuscate_addrs/; +use PublicInbox::Hval qw(ascii_html obfuscate_addrs mid_href); use PublicInbox::Address; -use PublicInbox::MID qw/mid_clean mid_escape/; +use PublicInbox::MID qw(mid_clean); sub squote_maybe ($) { my ($val) = @_; @@ -76,7 +76,7 @@ sub mailto_arg_link { $subj = "Re: $subj" unless $subj =~ /\bRe:/i; my $mid = $hdr->header_raw('Message-ID'); push @arg, '--in-reply-to='.squote_maybe(mid_clean($mid)); - my $irt = mid_escape($mid); + my $irt = mid_href($mid); delete $cc->{$to}; if ($obfs) { my $arg_to = $to;