Project

General

Profile

Bug #21638 » 15379_v2.diff

Administrator Admin, 2010-08-08 12:50

View differences:

t3lib/class.t3lib_userauth.php (Arbeitskopie)
} else {
$parts = t3lib_div::intInRange($parts,1,3);
$IPparts = explode('.',$IP);
// don't try to do IPv4 stuff to IPv6 if parts < 4
$IPv6 = t3lib_div::normalizeIPv6($IP);
if (t3lib_div::validIPv6($IPv6) && $parts < 4) {
return $IP;
}
for($a=4;$a>$parts;$a--) {
unset($IPparts[$a-1]);
}
(2-2/2)