summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/IPv6.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/inc/IPv6.inc b/src/etc/inc/IPv6.inc
index c3aa3f6..4493273 100644
--- a/src/etc/inc/IPv6.inc
+++ b/src/etc/inc/IPv6.inc
@@ -843,6 +843,11 @@ class Net_IPv6
if (strstr($ip, '.')) {
$pos = strrpos($ip, ':');
+
+ if(false === $pos) {
+ return array("", $ip);
+ }
+
$ip{$pos} = '_';
$ipPart = explode('_', $ip);
OpenPOWER on IntegriCloud