Skip Menu |

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

Report information
The Basics
Id: 7580
Status: new
Priority: 0/
Queue: HTTP-Request-Form

People
Owner: Nobody in particular
Requestors: mariano.cano [...] hispalinux.es
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Bug in Http::Request::Form
The function is_checkbox in Http-Request-Form-0.952 should be this: sub is_checkbox { my ($self, $name) = @_; if (defined($self->{'checkboxstate'}->{$name})) { return 1; } else { return undef; } } Currently (v. 0.952) this line is incorrect: if (defined($self->{'checkboxstate'}->($name))) { This error is shown without the correctio: Not a CODE reference at c:/Perl/site/lib/HTTP/Request/Form.pm line 440.
--- Form.pm.old 2004-09-08 16:41:44.265625000 +0200 +++ Form.pm 2004-09-08 15:31:49.640625000 +0200 @@ -437,7 +437,7 @@ sub is_checkbox { my ($self, $name) = @_; - if (defined($self->{'checkboxstate'}->($name))) { + if (defined($self->{'checkboxstate'}->{$name})) { return 1; } else { return undef;