gitweb: refactor input parameters parse/validation
commit1b2d297e41dbd12c56646796c3d3bcf190f0d5d4
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 10 Oct 2008 18:42:26 +0000 (10 20:42 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 12 Oct 2008 20:53:14 +0000 (12 13:53 -0700)
treedeb5aad91e3e816c47e5a92740c3c82f414ecf8c
parent5c283eb13c94be6ca974aa722159dc9838d10d97
gitweb: refactor input parameters parse/validation

Since input parameters can be obtained both from CGI parameters and
PATH_INFO, we would like most of the code to be agnostic about the way
parameters were retrieved. We thus collect all the parameters into the
new %input_params hash, delaying validation after the collection is
completed.

Although the kludge removal is minimal at the moment, it makes life much
easier for future expansions such as more extensive PATH_INFO use or
other form of input such as command-line support.

Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
gitweb/gitweb.perl