gitweb: avoid stale variable contents
commit4571aadd64c353e1b0b4e0894618d89bfbf9be15
authorKyle J. McKay <mackyle@gmail.com>
Mon, 28 Sep 2015 12:20:04 +0000 (28 05:20 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 28 Sep 2015 12:20:04 +0000 (28 05:20 -0700)
tree3d8c889f7169cde9492df9d94eecb99cd710f76b
parentce5efbaf8aba53ca904179804d287721cfcdd25e
gitweb: avoid stale variable contents

When gitweb is running in an optimized CGI processing mode
(mod_perl, FCGI, PSGI, etc.), multiple requests are served
by the same invocation of gitweb.cgi.

It is crucial for proper operation that remnants from the
previous request are not allowed to taint subsequent requests.

In particular, there are a number of "our" variables that
need to be expliictly cleared in order to prevent this from
happening and possibly corrupting subsequent requests.

The snapshot action is particularly susceptible to corruption
without these precautions.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
gitweb/gitweb.perl