summaryrefslogtreecommitdiff
path: root/program/lib/Roundcube/rcube_utils.php
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-01-23 17:58:09 +0100
committerThomas Bruederli <thomas@roundcube.net>2013-01-23 18:09:40 +0100
commit6984ab64f7c99b3371c4a61d0713d5b873233106 (patch)
tree8c62866900eee7eac0db5838498834e46ab773ad /program/lib/Roundcube/rcube_utils.php
parenta2181ee6250209c3444f727f48bb3356e4db4e4d (diff)
Use the right variable for IPv6 check
Diffstat (limited to 'program/lib/Roundcube/rcube_utils.php')
-rw-r--r--program/lib/Roundcube/rcube_utils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/lib/Roundcube/rcube_utils.php b/program/lib/Roundcube/rcube_utils.php
index 4b687111e..1ae782a25 100644
--- a/program/lib/Roundcube/rcube_utils.php
+++ b/program/lib/Roundcube/rcube_utils.php
@@ -156,7 +156,7 @@ class rcube_utils
{
// IPv6, but there's no build-in IPv6 support
if (strpos($ip, ':') !== false && !defined('AF_INET6')) {
- $parts = explode(':', $domain_part);
+ $parts = explode(':', $ip);
$count = count($parts);
if ($count > 8 || $count < 2) {