Index: branches/2016Q3/net/pear-Net_IPv6/Makefile =================================================================== --- branches/2016Q3/net/pear-Net_IPv6/Makefile (revision 421201) +++ branches/2016Q3/net/pear-Net_IPv6/Makefile (revision 421202) @@ -1,15 +1,16 @@ # Created by: Antonio Carlos Venancio Junior () # $FreeBSD$ PORTNAME= Net_IPv6 DISTVERSION= 1.2.1 +PORTREVISION= 1 CATEGORIES= net pear MAINTAINER= miwi@FreeBSD.org COMMENT= Check and validate IPv6 addresses USES= pear PORTSCOUT= skipv:1.2.2b,1.2.2b2 .include Index: branches/2016Q3/net/pear-Net_IPv6/files/patch-Net_IPv6.php =================================================================== --- branches/2016Q3/net/pear-Net_IPv6/files/patch-Net_IPv6.php (nonexistent) +++ branches/2016Q3/net/pear-Net_IPv6/files/patch-Net_IPv6.php (revision 421202) @@ -0,0 +1,35 @@ +--- Net/IPv6.php.orig 2016-08-31 14:11:53 UTC ++++ Net/IPv6.php +@@ -550,7 +550,7 @@ class Net_IPv6 + + if (false !== strpos($uip, '::') ) { + +- list($ip1, $ip2) = explode('::', $uip); ++ list($ip1, $ip2) = explode('::', $uip, 2); + + if ("" == $ip1) { + +@@ -601,12 +601,12 @@ class Net_IPv6 + + } else if (-1 == $c1) { // ::xxx + +- $fill = str_repeat('0:', 7-$c2); ++ $fill = str_repeat('0:', max(1, 7-$c2)); + $uip = str_replace('::', $fill, $uip); + + } else if (-1 == $c2) { // xxx:: + +- $fill = str_repeat(':0', 7-$c1); ++ $fill = str_repeat(':0', max(1, 7-$c1)); + $uip = str_replace('::', $fill, $uip); + + } else { // xxx::xxx +@@ -912,7 +912,7 @@ class Net_IPv6 + + } + +- if (8 == $count) { ++ if (8 == $count and empty($ipPart[1])) { + + return true; + Property changes on: branches/2016Q3/net/pear-Net_IPv6/files/patch-Net_IPv6.php ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: branches/2016Q3 =================================================================== --- branches/2016Q3 (revision 421201) +++ branches/2016Q3 (revision 421202) Property changes on: branches/2016Q3 ___________________________________________________________________ Modified: svn:mergeinfo ## -0,0 +0,1 ## Merged /head:r421168