gitweb: Separate input validation and dispatch, add comment about opml action

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Jakub Narebski 2006-08-05 12:55:20 +02:00 committed by Junio C Hamano
parent f9f02d0129
commit 154b4d78cf

View File

@ -71,6 +71,7 @@ if (! -d $git_temp) {
mkdir($git_temp, 0700) || die_error("Couldn't mkdir $git_temp");
}
# ======================================================================
# input validation and dispatch
our $action = $cgi->param('a');
if (defined $action) {
@ -78,6 +79,7 @@ if (defined $action) {
undef $action;
die_error(undef, "Invalid action parameter.");
}
# action which does not check rest of parameters
if ($action eq "opml") {
git_opml();
exit;