Bug in HTTP::Request::Common CHECK_BOUNDARY ?

Antoine Bertier (antoine.bertier@axa.com)
Fri, 18 Jun 1999 11:33:52 +0200


Hello,

I have problems with using HTTP::Request::Common to post files on a web
site. It seems that the selected boundary (000 by default) is not
checked correctly for existence in the transmitted parts. Since 000 is
often found in HTML files as a color specification this causes problems.

I think in CHECK_BOUNDARY the check must be on $boundary  not on
"--$boundary" which is the boundary line the standard specifies and not
the boundary itself.

So I would suggest to replace:
  if (index($_, "--$boundary") >= 0) {
by
  if (index($_, "$boundary") >= 0) {

What do you think ?

Regards,

Antoine.