]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/hval.t
www: do not obfuscate addresses in URLs
[public-inbox.git] / t / hval.t
index 9d0dab7a6aa28bddb42ce62bc169b047d982edbf..5afc2052b7220713fc15bad7f61877932d9b1bef 100644 (file)
--- a/t/hval.t
+++ b/t/hval.t
@@ -47,6 +47,10 @@ EOF
 
 is($html, $exp, 'only obfuscated relevant addresses');
 
+$exp = 'https://example.net/foo@example.net';
+PublicInbox::Hval::obfuscate_addrs($ibx, my $res = $exp);
+is($res, $exp, 'does not obfuscate URL with Message-ID');
+
 is(PublicInbox::Hval::to_filename('foo bar  '), 'foo-bar',
        'to_filename has no trailing -');