Browse Source

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>
maint
Jakub Narebski 19 years ago committed by Junio C Hamano
parent
commit
d04d3d424b
  1. 4
      gitweb/gitweb.perl

4
gitweb/gitweb.perl

@ -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…
Cancel
Save