diff options
author | Eric Wong <e@80x24.org> | 2024-01-09 12:49:13 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2024-01-10 10:27:01 +0000 |
commit | 61c44bbd8e57c719a1a4de75a1a11c412173e820 (patch) | |
tree | 5939c701ebed5560d54158ba347f89999f5879dd /lib/PublicInbox/View.pm | |
parent | 48cbe0c3c8dc4d2671af19b87185ba68e9fdd689 (diff) | |
download | public-inbox-61c44bbd8e57c719a1a4de75a1a11c412173e820.tar.gz |
For totally bogus things in address fields, we'll fall back to showing the original entry in the name column when using Email::Address::XS. The pure Perl version differs here, but we'll just let them be different when it comes to handling bogus data.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r-- | lib/PublicInbox/View.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 39ec35c3..9d4262c1 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -230,7 +230,7 @@ sub to_cc_html ($$$$) { } } $line_len += length($n); - $url = $addr2url->{lc $pair->[1]}; + $url = $addr2url->{lc($pair->[1] // '')}; $html .= $url ? qq(<a\nhref="$url$t">$n</a>) : $n; } ($html, $len + $line_len); |