Skip Menu |

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

Report information
The Basics
Id: 11733
Status: new
Priority: 0/
Queue: CGI-Upload

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.10
Fixed in: (no value)



Subject: fileparse fstype not reset after change
In _handle_file, fileparse_set_fstype is called to change the fstype for fileparse. It is not reset at the end of the sub, so the script using CGI::Upload to retrieve files will have later calls to fileparse use the HTTP::BrowserDetect-informed fstype used. The current value should be stored and reset. Store it at assign-time with: my $original_os = fileparse_set_fstype($client_os); and restore it later with fileparse_set_fstype($original_os); Otherwise, this leads to heisenberg-like bugs.