Skip Menu |

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

Report information
The Basics
Id: 97115
Status: new
Priority: 0/
Queue: CGI-Lite-Request

People
Owner: RHUNDT [...] cpan.org
Requestors: HOUSTON [...] cpan.org
Cc:
AdminCc:

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



Subject: url_decode is not imported
The args method relies on url_decode() which is provided by CGI::Lite, but this hasn't been imported, so the method fails. eg. #!/usr/bin/perl -Tw use strict; use warnings; BEGIN { $ENV{QUERY_STRING} = 'foo=bar'; } use CGI::Lite::Request; use Data::Dumper; my $cgi = CGI::Lite::Request->new; $cgi->parse; my %args = $cgi->args; print Dumper (\%args); fails with "Undefined subroutine &CGI::Lite::Request::Base::url_decode called at lib/CGI/Lite/Request/Base.pm line 267." using perl v5.14.3 on x86_64-linux-thread-multi. The attached trivial patch imports the url_decode() sub into the module and means that the test script above succeeds.
Subject: Base.pm.diff
--- Base.pm.orig 2014-07-10 18:36:48.979852362 +0100 +++ Base.pm 2014-07-10 18:37:14.760731529 +0100 @@ -8,6 +8,7 @@ use CGI::Lite::Request::Upload; use base qw(CGI::Lite); +CGI::Lite->import qw( url_decode ); our %_instances = ();