X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=lib%2FPublicInbox%2FView.pm;h=33b323dce248670dc1da248b795419470b4c0019;hp=1e53d8dc2ae133d7e58ac898021c632e618bb597;hb=78792fee4031aee0a8bd532bff98efc2b9409d68;hpb=f5aa58801122863961bd9a11e9d9c7b691ffca38 diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 1e53d8dc..33b323dc 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -532,6 +532,9 @@ sub add_text_body { # callback for msg_iter # link generation in diffs with the extra '%0D' $s =~ s/\r\n/\n/sg; + # will be escaped to `•' in HTML + obfuscate_addrs($ibx, $s, "\x{2022}") if $ibx->{obfuscate}; + # always support diff-highlighting, but we can't linkify hunk # headers for solver unless some coderepo are configured: my $diff; @@ -566,7 +569,7 @@ sub add_text_body { # callback for msg_iter # split off quoted and unquoted blocks: my @sections = PublicInbox::MsgIter::split_quotes($s); - $s = ''; + undef $s; # free memory my $rv = $ctx->{obuf}; if (defined($fn) || $depth > 0 || $err) { # badly-encoded message with $err? tell the world about it! @@ -587,10 +590,8 @@ sub add_text_body { # callback for msg_iter # regular lines, OK $$rv .= $l->to_html($cur); } - $cur = undef; + undef $cur; # free memory } - - obfuscate_addrs($ibx, $$rv) if $ibx->{obfuscate}; } sub _msg_page_prepare_obuf {