author | Martin Waitz <tali@admingilde.org> | |
Wed, 16 Aug 2006 22:28:40 +0000 (00:28 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 17 Aug 2006 10:04:46 +0000 (03:04 -0700) | ||
commit | 13d02165042c6139905dad38ee8324780d771d99 | |
tree | 19b45bb8c54f53508c25fd75e6a892682aca30e3 | tree | snapshot |
parent | 6132b7e4bbdbca14aff72d87784909810edefb82 | commit | diff |
gitweb: fix project list if PATH_INFO=="/".
The project list now uses several common header / footer generation functions.
These functions only check for "defined $project", but when PATH_INFO just
contains a "/" (which is often generated by web servers), then this test
fails.
Now explicitly undef $project if there is none so that the tests in other
gitweb parts work again.
Signed-off-by: Martin Waitz <tali@admingilde.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
The project list now uses several common header / footer generation functions.
These functions only check for "defined $project", but when PATH_INFO just
contains a "/" (which is often generated by web servers), then this test
fails.
Now explicitly undef $project if there is none so that the tests in other
gitweb parts work again.
Signed-off-by: Martin Waitz <tali@admingilde.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |