about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index 1c97f959..9dad0f6d 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -28,7 +28,7 @@ sub msg_str {
                 $header_obj->header_set($d);
         }
         my $ibx = $ctx->{-inbox};
-        my $base = $ibx->base_url($ctx->{cgi});
+        my $base = $ibx->base_url($ctx->{env});
         my $mid = mid_clean($header_obj->header('Message-ID'));
         $mid = uri_escape_utf8($mid);
         my @append = (