gitweb: Require project for almost all actions
Require that project (repository) is given for all actions except project_list, project_index and opml. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
cd90e75ff4
commit
d04d3d424b
@ -352,6 +352,10 @@ if (defined $project) {
|
|||||||
if (!defined($actions{$action})) {
|
if (!defined($actions{$action})) {
|
||||||
die_error(undef, "Unknown action");
|
die_error(undef, "Unknown action");
|
||||||
}
|
}
|
||||||
|
if ($action !~ m/^(opml|project_list|project_index)$/ &&
|
||||||
|
!$project) {
|
||||||
|
die_error(undef, "Project needed");
|
||||||
|
}
|
||||||
$actions{$action}->();
|
$actions{$action}->();
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user