summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2006-08-05 12:55:20 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-06 01:52:51 -0700
commit154b4d78cf35025268ed74c45f182b25ebaf4acc (patch)
treead4d03e0bf61e388557d215fa80ebf3858295f33 /gitweb
parentf9f02d012927cba2264b948d16008ede025f7c71 (diff)
downloadgit-154b4d78cf35025268ed74c45f182b25ebaf4acc.tar.gz
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl2
1 files changed, 2 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index b268b6344d..7f4387fde6 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -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;