gitweb: do not use 'No such directory' error message
undef $project; to prevent a file named description to be read. Signed-off-by: Junio C Hamano <junkio@cox.net>maint
parent
800764cf33
commit
7939fe44b8
|
@ -198,13 +198,10 @@ if (defined $action) {
|
||||||
|
|
||||||
our $project = $cgi->param('p');
|
our $project = $cgi->param('p');
|
||||||
if (defined $project) {
|
if (defined $project) {
|
||||||
if (!validate_input($project)) {
|
if (!validate_input($project) ||
|
||||||
die_error(undef, "Invalid project parameter");
|
!(-d "$projectroot/$project") ||
|
||||||
}
|
!(-e "$projectroot/$project/HEAD")) {
|
||||||
if (!(-d "$projectroot/$project")) {
|
undef $project;
|
||||||
die_error(undef, "No such directory");
|
|
||||||
}
|
|
||||||
if (!(-e "$projectroot/$project/HEAD")) {
|
|
||||||
die_error(undef, "No such project");
|
die_error(undef, "No such project");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue