summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd90e75)
raw | patch | inline | side by side (parent: cd90e75)
author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 19 Sep 2006 19:53:22 +0000 (21:53 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 20 Sep 2006 16:49:39 +0000 (09:49 -0700) |
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>
project_list, project_index and opml.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 5f597f71e05376268d55742f288888d30b93c240..7fd2e19446a27d89dd970c9ccc5dc68ea95f646e 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
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;