Skip to content

Commit

Permalink
Should use static::server rather than $_SERVER
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Lavin committed Apr 24, 2012
1 parent 7985bb9 commit 6b976f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/input.php
Expand Up @@ -177,12 +177,12 @@ public static function real_ip($default = '0.0.0.0', $exclude_reserved = false)

foreach ($server_keys as $key)
{
if (!isset($_SERVER[$key]))
if ( ! static::server($key))
{
continue;
}

$ips = explode(',', $_SERVER[$key]);
$ips = explode(',', static::server($key));
array_walk($ips, function (&$ip) {
$ip = trim($ip);
});
Expand Down

0 comments on commit 6b976f8

Please sign in to comment.