gitweb: Separate input validation and dispatch, add comment about opml action
authorJakub Narebski <jnareb@gmail.com>
Sat, 5 Aug 2006 10:55:20 +0000 (12:55 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 6 Aug 2006 08:52:51 +0000 (01:52 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl

index b268b6344d8023572bf632d91237afd54d07b61d..7f4387fde6e55540ba9001b88c0587813ae04d48 100755 (executable)
@@ -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;