Skip to content

Commit

Permalink
Merge branch 'jn/web' into next
Browse files Browse the repository at this point in the history
* jn/web:
  gitweb: Make use of $PATH_INFO for project parameter
  • Loading branch information
Junio C Hamano committed Jun 21, 2006
2 parents 160a59f + 49f582a commit 811476d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitweb/gitweb.cgi
Expand Up @@ -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.");
Expand Down

0 comments on commit 811476d

Please sign in to comment.