diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-21 16:38:05 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-21 16:38:05 -0700 |
commit | 811476d22480dd444b8eca9834829efce9648637 (patch) | |
tree | b9e508e3d2c1e02f0bf465b9f3d2b34fc68f11d7 | |
parent | 160a59f326d55970f8a038ef635c662b9c648c75 (diff) | |
parent | 49f582a0401f3b9b9a80ff6fe0dd601520579b7d (diff) | |
download | git-811476d22480dd444b8eca9834829efce9648637.tar.gz |
Merge branch 'jn/web' into next
* jn/web:
gitweb: Make use of $PATH_INFO for project parameter
-rwxr-xr-x | gitweb/gitweb.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gitweb/gitweb.cgi b/gitweb/gitweb.cgi index ef7fcbd84f..f2e50462d9 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."); |