diff options
author | Eric Wong <e@80x24.org> | 2015-08-17 07:46:54 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-17 07:51:53 +0000 |
commit | 0fea7793b22efd2596983283947ee43687e0cfac (patch) | |
tree | 50ec37c06e6834c500430652fb24c79f798d6980 /t/view.t | |
parent | 5c3f7d5f9a03056da6740af523f22903880cc9ec (diff) | |
download | public-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/view.t')
-rw-r--r-- | t/view.t | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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(); |