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>
Jakub Narebski committed
Aug 5, 2006 at 12:55 UTC
154b4d78cf35025268ed74c45f182b25ebaf4acc
1 file changed
+2
gitweb/gitweb.perl
+2
@@ -71,6 +71,7 @@ if (! -d $git_temp) {
71
mkdir($git_temp, 0700) || die_error("Couldn't mkdir $git_temp");
72
}
73
74
+# ======================================================================
75
# input validation and dispatch
76
our $action = $cgi->param('a');
77
if (defined $action) {
@@ -78,6 +79,7 @@ if (defined $action) {
79
undef $action;
80
die_error(undef, "Invalid action parameter.");
81
}
82
+ # action which does not check rest of parameters
83
if ($action eq "opml") {
84
git_opml();
85
exit;