Subject: | Uninitialized value error in read_multipart |
After upgrading from 3.29 to 3.37, I got errors when uploading a file:
Use of uninitialized value $filename in substitution (s///) at (eval 2)
line 23.
I added the following "if statement" around line 3390:
if (defined $filename) {
$filename =~ s/^"([^"]*)"$/$1/;
}
This has fixed my immediate problem, although quite possibly not in the
cleanest way. It looks like multiple form variables on the page were
appearing the method. For example, the "submit" button was one of those
appearing there, and didn't have a content disposition with "filename"
in the string.
This was a file upload with Internet Explorer 7.0.5730.11. The server is
Fedora Core 9, which is using 3.37 as it's most current version.