Skip Menu |

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

Report information
The Basics
Id: 107570
Status: resolved
Worked: 20 min
Priority: 0/
Queue: CGI-Lite

People
Owner: HOUSTON [...] cpan.org
Requestors: HOUSTON [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.00
Fixed in: 3.00_01



Subject: Warning emitted on uploads with non-file params
On processing an upload with enctype "multipart/form-data" which contains at least one non-file param this warning is seen: Use of uninitialized value $headers in pattern match (m//) at /usr/local/share/p erl5/CGI/Lite.pm line 1222. This is because the non-file params do not necessarily have a Content-Type header but the code currently expects one. This does not adversely affect the operation but it is noisy and pointlessly so. The code should be fixed to address this and it should be added to the test suite.
This has been fixed by explicitly setting the $headers variable to the empty string if it is undefined (ie. if no Content-Type header is present).