]> Lady’s Gitweb - Gitweb/commit
gitweb: don't use pathinfo for global actions
authorGiuseppe Bilotta <redacted>
Fri, 2 Jan 2009 11:34:40 +0000 (12:34 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commitb4e6c97a5835b47f9bbbf724a24e02085d64c70844bcc98854d583d2ca85fe2d
treeeed8e5b365952e76252cb18b07769f0520baf0bd3a6ff01a91e4c21ecbf5f69d
parent3e8ff3f55dc60149d990cfed0e05027e9ae739fe7f0cbe95b03aaa308ce94cfa
gitweb: don't use pathinfo for global actions

With PATH_INFO urls, actions for the projects list (e.g. opml,
project_index) were being put in the URL right after the base. The
resulting URL is not properly parsed by gitweb itself, since it expects
a project name as first component of the URL.

Accepting global actions in use_pathinfo is not a very robust solution
due to possible present and future conflicts between project names and
global actions, therefore we just refuse to create PATH_INFO URLs when
the project is not defined.

Signed-off-by: Giuseppe Bilotta <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.191841 seconds and 4 git commands to generate.