gitweb: PATH_INFO=/ means no project
Prepared for refactoring input validation. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
e2860ead31
commit
668e34d7cc
@ -86,8 +86,8 @@ if (defined $action) {
|
||||
}
|
||||
|
||||
our $project = ($cgi->param('p') || $ENV{'PATH_INFO'});
|
||||
if (defined $project) {
|
||||
$project =~ s|^/||; $project =~ s|/$||;
|
||||
$project =~ s|^/||; $project =~ s|/$||;
|
||||
if (defined $project && $project) {
|
||||
if (!validate_input($project)) {
|
||||
die_error(undef, "Invalid project parameter");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user