Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

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

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

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



Subject: Inconsistent URI Encoding
Date: Thu, 2 Feb 2012 16:18:47 -0800
To: bug-uri [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Download (untitled) / with headers
text/plain 365b
URI and URI::Escape are inconsistent in their encoding: perl -MURI -MURI::Escape -E 'say URI::Escape::uri_escape("foo\@bar.com"); my $uri = URI->new; $uri->path_segments("foo\@bar.com"); say $uri' foo%40bar.com foo@bar.com I *think* that URI.pm gets it right, if I’m reading http://en.wikipedia.org/wiki/Percent-encoding correctly. Thanks, David
Subject: Re: [rt.cpan.org #74644] AutoReply: Inconsistent URI Encoding
Date: Thu, 2 Feb 2012 16:21:33 -0800
To: bug-URI [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Download (untitled) / with headers
text/plain 373b
On Feb 2, 2012, at 4:19 PM, Bugs in URI via RT wrote: Show quoted text
> I *think* that URI.pm gets it right, if I’m reading http://en.wikipedia.org/wiki/Percent-encodingcorrectly.
Er, no, maybe URI::Escape gets it right? http://tools.ietf.org/html/rfc3986 lists @ as reserved. So I guess URI.pm does not get it right. This shit really should not be so confusing! ;-P Thanks, David
Subject: Re: [rt.cpan.org #74644] AutoReply: Inconsistent URI Encoding
Date: Thu, 2 Feb 2012 18:49:40 -0800
To: bug-URI [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Download (untitled) / with headers
text/plain 522b
On Feb 2, 2012, at 4:21 PM, David E. Wheeler wrote: Show quoted text
>> I *think* that URI.pm gets it right, if I’m reading http://en.wikipedia.org/wiki/Percent-encodingcorrectly.
> > Er, no, maybe URI::Escape gets it right? http://tools.ietf.org/html/rfc3986 lists @ as reserved. So I guess URI.pm does not get it right. > > This shit really should not be so confusing! ;-P
D’oh, never mind, it’s because path components can be less strict about what needs to be encoded. Sorry for the noise, please close this ticket. David


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.