Skip to content

Commit

Permalink
gitweb: Require project for almost all actions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakub Narebski authored and Junio C Hamano committed Sep 20, 2006
1 parent cd90e75 commit d04d3d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ sub evaluate_path_info {
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;

Expand Down

0 comments on commit d04d3d4

Please sign in to comment.