Skip Menu |

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 9051
Status: resolved
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: dws [...] airwwave.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in:
  • 0.075
  • 0.077
Fixed in: (no value)



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
Oops. That should be dws@airwave.com
From: william [...] knowwmad.com
This fix applies to line 223 of Simple.pm.