diff options
author | Eric Wong <e@80x24.org> | 2022-08-22 02:33:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-23 04:18:59 +0000 |
commit | a66872a124b3cde936a0d31b8d9f5a8fddee7573 (patch) | |
tree | 0e6a8cd53079b8903bf53d1f151b74763d464eac /lib/PublicInbox/WWW.pm | |
parent | 114b4dd6c6e241fc015ac01ea93aa1f13868f884 (diff) | |
download | public-inbox-a66872a124b3cde936a0d31b8d9f5a8fddee7573.tar.gz |
The $r404 variable is unset if we have a valid inbox, but no coderepos configured for that inbox, thus we must `r(404)' explicitly.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index a33709e9..77f463d3 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -303,7 +303,8 @@ sub get_text { sub get_vcs_object ($$$;$) { my ($ctx, $inbox, $oid, $filename) = @_; my $r404 = invalid_inbox($ctx, $inbox); - return $r404 if $r404 || !$ctx->{www}->{pi_cfg}->repo_objs($ctx->{ibx}); + return $r404 if $r404; + return r(404) if !$ctx->{www}->{pi_cfg}->repo_objs($ctx->{ibx}); require PublicInbox::ViewVCS; PublicInbox::ViewVCS::show($ctx, $oid, $filename); } |