temp bugfix -- restore file upload functionality
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 1 Feb 2008 00:27:05 +0000 (18:27 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Sun, 3 Feb 2008 13:23:58 +0000 (07:23 -0600)
commit6eba80e5f54e03df635b690e0700cc3bfbd60e15
treee8d236a6abb8507b0b4ec8d86127d20369bea3c6
parent60a98d258addadd6e642dea4483b0451b0fe37f7
temp bugfix -- restore file upload functionality

CGI->new() should not be used in any C4 module -
it has a side-effect that breaks the AJAX
file upload script.  Specifically, any file upload
field is slurped when a new CGI object is created, and
is not available to a second object created by CGI->new().

Consequently, C4::Debug should not be instantiating
a CGI object in its BEGIN block.  It can use other CGI::* modules
to parse QUERY_STRING to get the value of the debug
parameter (note that this means that the debug param
can be reliably set only in a GET, not as part of a
form submission).

Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Debug.pm