Bug #21638 » 15379_v2.diff

Administrator Admin, 2010-08-08 12:50

View differences:

t3lib/class.t3lib_userauth.php (Arbeitskopie)
965 965
		} else {
966 966
			$parts = t3lib_div::intInRange($parts,1,3);
967 967
			$IPparts = explode('.',$IP);
968

  
969
				// don't try to do IPv4 stuff to IPv6 if parts < 4
970
			$IPv6 = t3lib_div::normalizeIPv6($IP);
971
			if (t3lib_div::validIPv6($IPv6) && $parts < 4) {
972
				return $IP;
973
			}
974

  
968 975
			for($a=4;$a>$parts;$a--)	{
969 976
				unset($IPparts[$a-1]);
970 977
			}
(2-2/2)