Subject: | multipart/form-data POSTs cause subsequent GETs to lose args under mod_perl |
We've observed that under mod_perl 1.99, the Apache object will remember the content-type of a POST and carry it into subsequent GET requests. Because CGI::Simple::_read_parse() doesn't first check that $method is 'POST' before handling a multipart/form-data request, subequent non-POST requests on an Apache process will be handled as if they're multipart/form-data POSTs, and will lose any arguments passed in the URI.
The fix is to change
if ( $length and $type =~ m|^multipart/form-data|i ) {
to
if ( $method eq 'POST' and $length and $type =~ m|^multipart/form-data|i ) {
Dave Smith
AirWave Wireless