about summary refs log tree commit homepage
path: root/lib/PublicInbox/NewsWWW.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/NewsWWW.pm')
-rw-r--r--lib/PublicInbox/NewsWWW.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/NewsWWW.pm b/lib/PublicInbox/NewsWWW.pm
index 9b01dcd3..b4d74763 100644
--- a/lib/PublicInbox/NewsWWW.pm
+++ b/lib/PublicInbox/NewsWWW.pm
@@ -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) . '/';
                         }
                 }