Browse Source

Merge branch 'jn/web' into next

* jn/web:
  gitweb: Make use of $PATH_INFO for project parameter
maint
Junio C Hamano 19 years ago
parent
commit
811476d224
  1. 3
      gitweb/gitweb.cgi

3
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) { if (defined $project) {
$project =~ s|^/||; $project =~ s|/$||;
$project = validate_input($project); $project = validate_input($project);
if (!defined($project)) { if (!defined($project)) {
die_error(undef, "Invalid project parameter."); die_error(undef, "Invalid project parameter.");

Loading…
Cancel
Save