Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 8692) +++ t3lib/class.t3lib_div.php (working copy) @@ -713,19 +713,19 @@ // "192.168.3.0/24" $lnet = ip2long($test); $lip = ip2long($baseIP); - $binnet = str_pad( decbin($lnet),32,'0','STR_PAD_LEFT'); - $firstpart = substr($binnet,0,$mask); - $binip = str_pad( decbin($lip),32,'0','STR_PAD_LEFT'); - $firstip = substr($binip,0,$mask); - $yes = (strcmp($firstpart,$firstip)==0); + $binnet = str_pad(decbin($lnet), 32, '0', STR_PAD_LEFT); + $firstpart = substr($binnet, 0, $mask); + $binip = str_pad(decbin($lip), 32, '0', STR_PAD_LEFT); + $firstip = substr($binip, 0, $mask); + $yes = (strcmp($firstpart, $firstip) == 0); } else { // "192.168.*.*" - $IPparts = explode('.',$test); + $IPparts = explode('.', $test); $yes = 1; foreach ($IPparts as $index => $val) { $val = trim($val); - if (strcmp($val,'*') && strcmp($IPpartsReq[$index],$val)) { - $yes=0; + if (strcmp($val, '*') && strcmp($IPpartsReq[$index], $val)) { + $yes = 0; } } }