Skip Menu |

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

Report information
The Basics
Id: 53489
Status: new
Priority: 0/
Queue: Regexp-Common-IRC

Owner: Nobody in particular
Requestors: robertfwest [...]

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

Subject: Unescaped escape in hostname regex string allows invalid matches
Date: Thu, 7 Jan 2010 12:26:20 -0500
To: bug-Regexp-Common-IRC [...]
From: Rob West <robertfwest [...]>
Download (untitled) / with headers
text/plain 528b
The patch below fixes the bug where a_b would match even though it is not valid according to the RFC. --- Regexp-Common-IRC-0.04/lib/Regexp/Common/ 2010-01-07 12:10:18.000000000 -0500 +++ Regexp-Common-IRC-0.04/lib/Regexp/Common/ 2010-01-07 12:10:34.000000000 -0500 @@ -167,7 +167,7 @@ create => qq/(?k:$shortname)/, ; -my $hostname = "$shortname(?:\.$shortname)*"; +my $hostname = "$shortname(?:\\.$shortname)*"; pattern name => [qw(IRC hostname -keep)], create => qq/(?k:$hostname)/,

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

Please report any issues with to