Skip Menu |

This queue is for tickets about the HTML-Form CPAN distribution.

Report information
The Basics
Id: 75155
Status: resolved
Priority: 0/
Queue: HTML-Form

People
Owner: Nobody in particular
Requestors: maik.hentsche [...] amd.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 6.01
Fixed in: (no value)



Subject: Test fails due to encode issues
Building HTML::Form fails on my machine with Perl5.14.2. The following is the output of prove -vl t/form.t (stripped down to only contain the error line): not ok 15 # Test 15 got: "POST http://localhost/\nContent-Length: 75\nContent- Type: application/x-www-form-urlencoded\n \ni.x=1&i.y=1&c=on&r=b&t=&p=&h=xyzzy&f=&x=&a=%0D%0Aabc%0D%0A +++&s=bar&m=a&m=b\n" (t/form.t at line 82) # Expected: "POST http://localhost/\nContent-Length: 69\nContent- Type: application/x-www-form-urlencoded\n \ni.x=1&i.y=1&c=on&r=b&t=&p=&h=xyzzy&f=&x=&a=%0Aabc%0A+++&s=bar&m=a&m=b \n" # Line 2 is changed: # - "Content-Length: 69\n" # + "Content-Length: 75\n" # Line 5 is changed: # - "i.x=1&i.y=1&c=on&r=b&t=&p=&h=xyzzy&f=&x=&a=%0Aabc%0A +++&s=bar&m=a&m=b\n" # + "i.x=1&i.y=1&c=on&r=b&t=&p=&h=xyzzy&f=&x=&a=%0D%0Aabc%0D%0A +++&s=bar&m=a&m=b\n" # t/form.t line 82 is: ok($f->click->as_string, <<'EOT');
From: duvny [...] yopmail.com
40% of cpan testers also have this problem: http://static.cpantesters.org/distro/H/HTML-Form.html
Fixed by <https://github.com/gisle/html-form/commit/63d37353abcb0fb57fd9e9cb19e518b226012462>. HTML-Form-6.02 has been uploaded to CPAN.