Skip Menu |

This queue is for tickets about the Regexp-Common CPAN distribution.

Report information
The Basics
Id: 32489
Status: resolved
Priority: 0/
Queue: Regexp-Common

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

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



Subject: %xx not honored
use Regexp::Common qw /URI/; $url = "http://spamassassin.apache%2Eorg/"; @parsed = $url =~ /$RE{URI}{HTTP}{-keep}/; print join("\n", @parsed), "\n"; result: http://spamassassin.apache http spamassassin.apache %2E maps to '.'
Subject: Re: [rt.cpan.org #32489] %xx not honored
Date: Mon, 21 Jan 2008 21:46:43 +0100
To: Geoffrey Leach via RT <bug-Regexp-Common [...] rt.cpan.org>
From: Abigail <abigail [...] abigail.be>
On Mon, Jan 21, 2008 at 03:37:55PM -0500, Geoffrey Leach via RT wrote: Show quoted text
> > Mon Jan 21 15:37:49 2008: Request 32489 was acted upon. > Transaction: Ticket created by GLEACH > Queue: Regexp-Common > Subject: %xx not honored > Broken in: 2.120 > Severity: Important > Owner: Nobody > Requestors: GLEACH@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32489 > > > > use Regexp::Common qw /URI/; > $url = "http://spamassassin.apache%2Eorg/"; > @parsed = $url =~ /$RE{URI}{HTTP}{-keep}/; > print join("\n", @parsed), "\n"; > > result: > http://spamassassin.apache > http > spamassassin.apache > > %2E maps to '.'
%2E maps to '.', but only in the path part of an HTTP URL. There is *no* escaping in the hostport part of the URL. Not parsing of %2E in the host part is hence correct. See also the grammar in section 5 of RFC 1738. Regards, Abigail
Download (untitled)
application/pgp-signature 189b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #32489] %xx not honored
Date: Mon, 21 Jan 2008 14:33:04 -0800
To: bug-Regexp-Common [...] rt.cpan.org
From: Geoffrey Leach <geoff [...] hughes.net>
I stand corrected. Thanks. On 01/21/2008 12:47:17 PM, Abigail via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=32489 > > > On Mon, Jan 21, 2008 at 03:37:55PM -0500, Geoffrey Leach via RT > wrote:
> > > > Mon Jan 21 15:37:49 2008: Request 32489 was acted upon. > > Transaction: Ticket created by GLEACH > > Queue: Regexp-Common > > Subject: %xx not honored > > Broken in: 2.120 > > Severity: Important > > Owner: Nobody > > Requestors: GLEACH@cpan.org > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32489 > > > > > > > use Regexp::Common qw /URI/; > > $url = "http://spamassassin.apache%2Eorg/"; > > @parsed = $url =~ /$RE{URI}{HTTP}{-keep}/; > > print join("\n", @parsed), "\n"; > > > > result: > > http://spamassassin.apache > > http > > spamassassin.apache > > > > %2E maps to '.'
> > > %2E maps to '.', but only in the path part of an HTTP URL. There is > *no* escaping in the hostport part of the URL. > > Not parsing of %2E in the host part is hence correct. > > > See also the grammar in section 5 of RFC 1738. > > > > Regards, > > > Abigail > > >
Not a bug
Misclicked. It's really resolved.