gitweb: Require project for almost all actions
PATCH 1/1 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 <[email protected]>
--- gitweb/gitweb.perl | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
gitweb/gitweb.perl +4 -0
@@ -341,6 +341,10 @@ if (defined $project) { if (!defined($actions{$action})) { die_error(undef, "Unknown action"); } +if ($action !~ m/^(opml|project_list|project_index)$/ && + !$project) { + die_error(undef, "Project needed"); +} $actions{$action}->(); exit;
Signature · 1 line
1.4.2.1