Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate
-
Labels:None
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
This won't work on any IPv6 IP which can parsed back to IPv4.