Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 62860
Status: rejected
Priority: 0/
Queue: URI

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

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



MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 348
Download (untitled) / with headers
text/plain 348b
Hi, the following seems to fail to get the query string parsed: my $url_raw = "http://www.howardforums.com/#9733;-The-WIND-Mobile-Sticky-FAQ-★?s=1075be0490f4912a4f9ee738c1a4a243&p=13343898"; my $url_object = URI->new( $fields[1] ); print $url_object->query; # prints "" I would have expected "s=1075be0490f4912a4f9ee738c1a4a243&p=13343898".
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2361-1289282704-671.62860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 131
Download (untitled) / with headers
text/plain 131b
The issue appears to be the Unicode characters, "#9733;" (BLACK STAR, http://www.fileformat.info/info/unicode/char/2605/index.htm).
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17549-1295722520-427.62860-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 256
Download (untitled) / with headers
text/plain 256b
I think you are confusing HTML escaping with what the syntax for URIs are. Basically you need to pass the values from HTML documents through HTML::Entities' decode_entities() function. The '#' otherwise signals the start of the fragment part of the URI.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.