diff options
Diffstat (limited to 'core/IP.php')
-rw-r--r-- | core/IP.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/IP.php b/core/IP.php index 6e8e1d13e6..0b3d152ee7 100644 --- a/core/IP.php +++ b/core/IP.php @@ -368,10 +368,15 @@ class IP */ public static function getNonProxyIpFromHeader($default, $proxyHeaders) { - $proxyIps = @Config::getInstance()->General['proxy_ips']; + $proxyIps = array(); + $config = Config::getInstance()->General; + if(isset($config['proxy_ips'])) { + $proxyIps = $config['proxy_ips']; + } if (!is_array($proxyIps)) { $proxyIps = array(); } + $proxyIps[] = $default; // examine proxy headers |