diff options
author | Eric Wong <e@yhbt.net> | 2020-07-07 20:37:34 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-10 11:27:05 +0000 |
commit | bc18c05b1681acc9a468b298c34b12ca4db3e5bb (patch) | |
tree | 72da4c4bc1c5f387e0e66b1fccb482a022a123ed /lib/PublicInbox/WWW.pm | |
parent | 17d4b5796d44b2c7a3a0335f174503c1f18b4347 (diff) | |
download | public-inbox-bc18c05b1681acc9a468b298c34b12ca4db3e5bb.tar.gz |
This means we need to filter out "" from query parameters. While we're at it, update comments for the WWW endpoint.
Diffstat (limited to 'lib/PublicInbox/WWW.pm')
-rw-r--r-- | lib/PublicInbox/WWW.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index e4ad515a..2ea5d80d 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -301,9 +301,8 @@ sub get_text { } # show git objects (blobs and commits) -# /$INBOX/_/$OBJECT_ID/show -# /$INBOX/_/${OBJECT_ID}_${FILENAME} -# KEY may contain slashes +# /$INBOX/$GIT_OBJECT_ID/s/ +# /$INBOX/$GIT_OBJECT_ID/s/$FILENAME sub get_vcs_object ($$$;$) { my ($ctx, $inbox, $oid, $filename) = @_; my $r404 = invalid_inbox($ctx, $inbox); |