path: root/dir.h
diff options
authorGiuseppe Bilotta <>2009-02-15 09:18:36 (GMT)
committerJunio C Hamano <>2009-02-17 00:19:07 (GMT)
commit81d3fe9f4871e42ebd1af0221fa091fe5476e2f7 (patch)
tree3b835817b804f1dc6471390b735fdfcdbe6d1248 /dir.h
parent4a5856cb249579845e24713225bc1749a9b20482 (diff)
gitweb: fix wrong base URL when non-root DirectoryIndex
CGI::url() has some issues when rebuilding the script URL if the script is a DirectoryIndex. One of these issue is the inability to strip PATH_INFO, which is why we had to do it ourselves. Another issue is that the resulting URL cannot be used for the <base> tag: it works if we're the DirectoryIndex at the root level, but not otherwise. We fix this by building the proper base URL ourselves, and improve the comment about the need to strip PATH_INFO manually while we're at it. Additionally t/ had to be modified to set SCRIPT_NAME variable (CGI standard states that it MUST be set, and now gitweb uses it if PATH_INFO is not empty, as is the case for some of tests in t9500). Signed-off-by: Giuseppe Bilotta <> Signed-off-by: Jakub Narebski <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'dir.h')
0 files changed, 0 insertions, 0 deletions