Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 77756
Status: new
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: gwittel [...] proofpoint.com
Cc:
AdminCc:

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



Subject: URI Path Truncated
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: 219
Download (untitled) / with headers
text/plain 219b
For a URI like: 'http://twitter.com/#!/abc123', the 'path' or 'path_query' returns '/': use URI; my $u = URI->new('https://twitter.com/#!/example.com'); print $u->path; # returns '/' Using Perl 5.8.8 x86, Centos 5.5
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-2482-1339436485-1692.77756-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: gwittel [...] proofpoint.com
X-RT-Original-Encoding: utf-8
Content-Length: 572
Download (untitled) / with headers
text/plain 572b
I just realized this is due to the 'fragment' feature. Would it make sense to add a function or a perldoc note to retrieve everything after the initial '/' including the fragment? Otherwise, feel free to close as invalid if no doc clarification or code change is wanted. On Mon Jun 11 13:05:21 2012, gwittel@proofpoint.com wrote: Show quoted text
> For a URI like: 'http://twitter.com/#!/abc123', the > 'path' or 'path_query' returns '/': > > > use URI; > my $u = URI->new('https://twitter.com/#!/example.com'); > print $u->path; # returns '/' > > Using Perl 5.8.8 x86, Centos 5.5


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.