summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-21 23:38:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-06-21 23:38:05 (GMT)
commit811476d22480dd444b8eca9834829efce9648637 (patch)
treeb9e508e3d2c1e02f0bf465b9f3d2b34fc68f11d7
parent160a59f326d55970f8a038ef635c662b9c648c75 (diff)
parent49f582a0401f3b9b9a80ff6fe0dd601520579b7d (diff)
downloadgit-811476d22480dd444b8eca9834829efce9648637.zip
git-811476d22480dd444b8eca9834829efce9648637.tar.gz
git-811476d22480dd444b8eca9834829efce9648637.tar.bz2
Merge branch 'jn/web' into next
* jn/web: gitweb: Make use of $PATH_INFO for project parameter
-rwxr-xr-xgitweb/gitweb.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi
index ef7fcbd..f2e5046 100755
--- a/gitweb/gitweb.cgi
+++ b/gitweb/gitweb.cgi
@@ -86,8 +86,9 @@ if (defined $order) {
}
}
-my $project = $cgi->param('p');
+my $project = ($cgi->param('p') || $ENV{'PATH_INFO'});
if (defined $project) {
+ $project =~ s|^/||; $project =~ s|/$||;
$project = validate_input($project);
if (!defined($project)) {
die_error(undef, "Invalid project parameter.");