Skip Menu |

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

Report information
The Basics
Id: 56808
Status: new
Priority: 0/
Queue: CGI-Simple

Owner: Nobody in particular
Requestors: jspin72 [...]

Bug Information
Severity: Normal
Broken in:
  • 1.106
  • 1.107
  • 1.108
  • 1.109
  • 1.110
  • 1.111
  • 1.112
Fixed in: (no value)

Subject: at least 1 type of multi-part file upload is broken
Download (untitled) / with headers
text/plain 963b
First off, thanks for your efforts on CGI::Simple! tested with both perl 5.8.8 and 5.10.0 This bug is in the handling of multi-part form data relating to file uploads. The version I first experienced this on was 1.106 but it still exists in 1.112. Within _parse_multipart you'll find a line that looks like: my ( $param ) = $unfold =~ m/form-data;\s+name="?([^\";]*)"?/; The problem is that when the content is a file, either 'form-data' or 'file' are acceptable according to the spec. For reference, take a peek at (search for 'disposition') One possible fix is: my ( $param ) = $unfold =~ m/(?:form-data|file);\s+name="?([^\";]*)"?/; W3C specifies yet another variation where multiple files all under the same form-field name are listed as 'multipart/mixed' Perhaps I'll provide a patch for this format as well, but right now I don't have time. cheers

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to