about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-06-09 17:53:53 +0000
committerEric Wong <e@80x24.org>2022-06-09 22:29:05 +0000
commit930d2dc63e04c652e3b64cc7f3b3a7d377637065 (patch)
tree889d5adbbee07c5ecae20f50572fb2038c70a4c6 /t
parent68b53c88891129928183c30fd416bb8bc82a87e7 (diff)
downloadpublic-inbox-930d2dc63e04c652e3b64cc7f3b3a7d377637065.tar.gz
It's probably not a perfect match for RFC 6068 atm, but perfect
is the enemy of good.

Reported-by: Moritz Poldrack <moritz@poldrack.dev>
Link: https://public-inbox.org/meta/CKJSWGSZFKMX.3VUSIYE955Z9X@Archetype/
Diffstat (limited to 't')
-rw-r--r--t/plack.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/plack.t b/t/plack.t
index e4dedce6..a5fd54c9 100644
--- a/t/plack.t
+++ b/t/plack.t
@@ -85,6 +85,7 @@ test_psgi($app, sub {
         my ($cb) = @_;
         my $res = $cb->(GET('http://example.com/test/crlf@example.com/'));
         is($res->code, 200, 'retrieved CRLF as HTML');
+        like($res->content, qr/mailto:me\@example/, 'no %40, per RFC 6068');
         unlike($res->content, qr/\r/, 'no CR in HTML');
         $res = $cb->(GET('http://example.com/test/crlf@example.com/raw'));
         is($res->code, 200, 'retrieved CRLF raw');