about summary refs log tree commit homepage
path: root/t/hval.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-01-16 05:08:22 +0000
committerEric Wong <e@80x24.org>2018-01-16 05:11:09 +0000
commit24a309bd1221a24ac673ece463f765f7a92921ff (patch)
tree22b7f973f5c119cb758c94b7baeffac70b827885 /t/hval.t
parent956ede734d7c2e8d0a3003c6e2d554114586643e (diff)
downloadpublic-inbox-24a309bd1221a24ac673ece463f765f7a92921ff.tar.gz
Obfuscating username portions of the email address leads
to having subsequent parts of the address not being obfuscated;
which could mean we show someone else's email entirely.

In other words, obfuscating "john.doe@example.com" becomes
might mean "doe@example.com" is picked up by scanners.

In other news, email address obfuscation is still a horrible
usability issue and only exists to appease misguided people.
Diffstat (limited to 't/hval.t')
-rw-r--r--t/hval.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/hval.t b/t/hval.t
index 2af4d2af..7915f4c9 100644
--- a/t/hval.t
+++ b/t/hval.t
@@ -18,6 +18,7 @@ hello@example.com
 meta@public-inbox.org
 test@public-inbox.org
 test@a.b.c.org
+te.st@example.org
 EOF
 
 PublicInbox::Hval::obfuscate_addrs($ibx, $html);
@@ -28,6 +29,7 @@ hello@example.com
 meta@public-inbox.org
 test@public-inbox&#8226;org
 test@a&#8226;b.c.org
+te.st@example&#8226;org
 EOF
 
 is($html, $exp, 'only obfuscated relevant addresses');