about summary refs log tree commit homepage
path: root/lib/PublicInbox/WWW.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-07 20:37:34 +0000
committerEric Wong <e@yhbt.net>2020-07-10 11:27:05 +0000
commitbc18c05b1681acc9a468b298c34b12ca4db3e5bb (patch)
tree72da4c4bc1c5f387e0e66b1fccb482a022a123ed /lib/PublicInbox/WWW.pm
parent17d4b5796d44b2c7a3a0335f174503c1f18b4347 (diff)
downloadpublic-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.pm5
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);