Skip Menu |

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

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

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

Bug Information
Severity: Important
Broken in: 2.02
Fixed in: 2.03



Subject: Fails to handle POST multipart from Safari 3
Safari 3x (Windows and Mac) can use boundary strings with the + character in them. CGI::Lite fails to process forms if the boundary string contains +. Safari 3 uses this character randomly as its multipart boundary. The regular expression on line 1024 needs to use an escaped $boundary variable. Add this to the start of that function: $boundary=quotemeta($boundary);
Hello Justin, Thanks for spotting and raising this bug report. You are, of course, quite right and your suggested fix solves the greater problem of all the possible regex metacharacters allowed in the encapsulation boundary by RFC 1341. This will be fixed in the next release. Pete On Wed Aug 29 14:59:44 2007, justin9 wrote: Show quoted text
> Safari 3x (Windows and Mac) can use boundary strings with the + > character in them. CGI::Lite fails to process forms if the boundary > string contains +. Safari 3 uses this character randomly as its > multipart boundary. > > The regular expression on line 1024 needs to use an escaped $boundary > variable. > > Add this to the start of that function: > > $boundary=quotemeta($boundary); >
This has been fixed in the recently-released version 2.03.