Fix IPv6 address validation on PHP with disabled IPv6 support

pull/291/head
Aleksander Machniak 9 years ago
parent c360e178c4
commit 6b31846c43

@ -156,7 +156,7 @@ class rcube_utils
$length = strlen($part);
if (!$length) {
// there can be only one ::
if ($found_empty) {
if ($found_empty && $idx > 2) {
return false;
}
$found_empty = true;

Loading…
Cancel
Save