diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-09-19 21:53:22 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-20 09:49:39 -0700 |
commit | d04d3d424b913332f5c400162f0d87faac1ad3ea (patch) | |
tree | 0cb95618d6cebc194cab157489a449efeb84af50 /gitweb | |
parent | cd90e75ff4a9b01a9cf59505d8d10d79fd1071ca (diff) | |
download | git-d04d3d424b913332f5c400162f0d87faac1ad3ea.tar.gz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 5f597f71e0..7fd2e19446 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -352,6 +352,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; |