about summary refs log tree commit homepage
path: root/t/psgi_v2.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-24 00:12:37 +0000
committerEric Wong <e@80x24.org>2019-10-28 10:49:08 +0000
commitd2786235a289a0286d96a9b853b7a0a30a6f6b5a (patch)
tree67cb435dca40edf8ba7e7d24ef28c92a5cb70314 /t/psgi_v2.t
parent2394cb0bdc671605729b5a4c578ef4cd3b9813fd (diff)
downloadpublic-inbox-d2786235a289a0286d96a9b853b7a0a30a6f6b5a.tar.gz
view: move '<' and '>' outside <a>
Browsers may underline '<' and '>' in links, which may be
confused with '≤' and '≥'.  So have the Message-ID header
display follow what we do with In-Reply-To headers and move the
"&lt;" and "&gt;" outside of <a> in the HTML.
Diffstat (limited to 't/psgi_v2.t')
-rw-r--r--t/psgi_v2.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t
index cb5ece63..c7550e2d 100644
--- a/t/psgi_v2.t
+++ b/t/psgi_v2.t
@@ -168,7 +168,7 @@ test_psgi(sub { $www->call(@_) }, sub {
         @from_ = ($raw =~ m/>From: /mg);
         is(scalar(@from_), 3, 'three From: lines');
         foreach my $mid ('a-mid@b', $new_mid, $third) {
-                like($raw, qr/&lt;\Q$mid\E&gt;/s, "Message-ID $mid shown");
+                like($raw, qr!>\Q$mid\E</a>!s, "Message-ID $mid shown");
         }
         like($raw, qr/\b3\+ messages\b/, 'thread overview shown');