diff options
-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."); |