ZF-8640: Zend_Validate_Ip - IPv6 regex may allow newlines
Description
In some circumstances, the IPv6 regexes may allow a newline after the IP:
require_once 'Zend/Validate/Ip.php';
$v = new Zend_Validate_Ip;
var_dump($v->isValid("::C0A8:2\n")); // TRUE
Comments
Posted by Pádraic Brady (padraic) on 2009-12-27T06:06:11.000+0000
This won't work on any IPv6 IP which can parsed back to IPv4.
Posted by Thomas Weidner (thomas) on 2009-12-27T07:16:49.000+0000
Fixed with r19949