Use the right variable for IPv6 check

pull/57/merge
Thomas Bruederli 12 years ago
parent f3713a6330
commit 293a5798af

@ -156,7 +156,7 @@ class rcube_utils
{ {
// IPv6, but there's no build-in IPv6 support // IPv6, but there's no build-in IPv6 support
if (strpos($ip, ':') !== false && !defined('AF_INET6')) { if (strpos($ip, ':') !== false && !defined('AF_INET6')) {
$parts = explode(':', $domain_part); $parts = explode(':', $ip);
$count = count($parts); $count = count($parts);
if ($count > 8 || $count < 2) { if ($count > 8 || $count < 2) {

Loading…
Cancel
Save