about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-08-17 07:46:54 +0000
committerEric Wong <e@80x24.org>2015-08-17 07:51:53 +0000
commit0fea7793b22efd2596983283947ee43687e0cfac (patch)
tree50ec37c06e6834c500430652fb24c79f798d6980 /t
parent5c3f7d5f9a03056da6740af523f22903880cc9ec (diff)
downloadpublic-inbox-0fea7793b22efd2596983283947ee43687e0cfac.tar.gz
Some HTTP servers (apache2 2.2.22-13+deb7u5) on my system
apparently do not handle "%25" correctly.  I'm not yet sure if
it's something weird with my rewrite rules or what....
Diffstat (limited to 't')
-rw-r--r--t/view.t9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/view.t b/t/view.t
index 3107285c..463fc076 100644
--- a/t/view.t
+++ b/t/view.t
@@ -144,4 +144,13 @@ EOF
         like($html, qr/\bhi = bye\b/, "HTML output decoded QP");
 }
 
+
+{        # XXX dirty hack
+        use PublicInbox::MID qw/mid_compressed/;
+        like(mid_compressed('foo%bar@wtf'), qr/\A[a-f0-9]{40}\z/,
+                "percent always converted to sha1 to workaround buggy httpds");
+        is(mid_compressed('foobar@wtf'), 'foobar@wtf',
+                'regular MID not compressed');
+}
+
 done_testing();