Skip Menu |

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 82133
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: CYBAEA [...] cpan.org
Cc:
AdminCc:

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



Subject: URI::QueryParam does not handle a single, value-less parameter
URI::QueryParam does not handle a single, value-less parameter but returns the empty list: perl -E 'use URI; use URI::QueryParam; my $uri = URI->new("http://johnsmith.s3.amazonaws.com/?acl"); say join "/", $uri->query_param();'
On Thu Dec 20 08:07:25 2012, CYBAEA wrote: Show quoted text
> URI::QueryParam does not handle a single, value-less parameter but > returns the empty list: > > perl -E 'use URI; use URI::QueryParam; > my $uri = URI->new("http://johnsmith.s3.amazonaws.com/?acl"); > say join "/", $uri->query_param();'
You didn't provide a URL with a single value-less parameter. If you did, it would have worked. $ perl -MURI -E'say URI->new("http://foo/?acl=")->query_form();' acl $ perl -MURI -MURI::QueryParam -E'say for URI->new("http://foo/?acl=")->query_param();' acl What you have is akin to an isindex query. $ perl -MURI -E'say URI->new("http://foo/?acl")->query_keywords();' acl