]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/NewsWWW.pm
www: do not unecessarily escape some chars in paths
[public-inbox.git] / lib / PublicInbox / NewsWWW.pm
index 9b01dcd3839023ae69481dd1e282d491b97443c3..b4d747633fc378146c9439c6c5b8af1a1bcb83c9 100644 (file)
@@ -9,7 +9,7 @@ package PublicInbox::NewsWWW;
 use strict;
 use warnings;
 use PublicInbox::Config;
-use URI::Escape qw(uri_escape_utf8);
+use PublicInbox::MID qw(mid_escape);
 
 sub new {
        my ($class, $pi_config) = @_;
@@ -35,7 +35,7 @@ sub call {
                                # article IDs are not stable across clones,
                                # do not encourage caching/bookmarking them
                                $code = 302;
-                               $url .= uri_escape_utf8($mid) . '/';
+                               $url .= mid_escape($mid) . '/';
                        }
                }