Skip Menu |

This queue is for tickets about the Net-IP CPAN distribution.

Report information
The Basics
Id: 21589
Status: resolved
Priority: 0/
Queue: Net-IP

People
Owner: cpan [...] bat.ru
Requestors: mattilinnanvuori [...] yahoo.com
Cc:
AdminCc:

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



Subject: 192.168.1.1/ä accepted by Net::IP->new as an IP address
Date: Wed, 20 Sep 2006 22:14:21 -0700 (PDT)
To: bug-Net-IP [...] rt.cpan.org
From: Matti Linnanvuori <mattilinnanvuori [...] yahoo.com>
192.168.1.1/ä and other netmasks ending with a letter accepted by Net::IP->new as an IP address. # perl -w use Net::IP; if (Net::IP->new('192.168.1.1/ä')) { print "Accepted" } Accepted # perl -v This is perl, v5.8.0 built for i586-linux-thread-multi Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. Show quoted text
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
On Thu Sep 21 01:14:42 2006, mattilinnanvuori@yahoo.com wrote: Show quoted text
> 192.168.1.1/ä and other netmasks ending with a letter accepted by > Net::IP->new as an IP address. > > # perl -w > use Net::IP; > if (Net::IP->new('192.168.1.1/ä')) > { print "Accepted" }
This is the result of too permissive regular expression for the prefixed forms of address. I made it more strict, hopefully, that doesn't introduce regression.