Index: branches/5.2.x/core/kernel/globals.php =================================================================== diff -u -N -r15517 -r15569 --- branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15517) +++ branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15569) @@ -1,6 +1,6 @@ never match + if ( php_sapi_name() == 'cli' ) { return false; } $ip_match = false; $ip_addresses = $ip_list ? explode($separator, $ip_list) : Array (); + $application =& kApplication::Instance(); + $client_ip = $application->getClientIp(); + foreach ($ip_addresses as $ip_address) { - if (self::netMatch($ip_address, $_SERVER['REMOTE_ADDR'])) { + if ( self::netMatch($ip_address, $client_ip) ) { $ip_match = true; break; }