]> Lady’s Gitweb - Gitweb/commit
gitweb: refactor input parameters parse/validation
authorGiuseppe Bilotta <redacted>
Fri, 10 Oct 2008 18:42:26 +0000 (20:42 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commit92a6813f12a45fee5d5820e60d42b67f7599db9a4df2f0ea93f80ff72d89d9f5
tree39628e0f1b27769ee4567bb07686f5ce19075ea39b6b45f4f462a407787254ea
parent3d4d9b6b39ed8066cc236dfa05714fb79b66540cf2563a6cbdbb2193e11a6f98
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
gitweb.perl
This page took 0.081149 seconds and 4 git commands to generate.