@@ -119,7 +119,9 @@ |
||
119 | 119 | if (isset($hxff)) { |
120 | 120 | // Server is hidden behind a proxy. |
121 | 121 | // Proxy for loopback ip might indicate spoofing |
122 | - if (!in_array($hxff, array('127.0.0.1', '::1'))) $ip = $hxff; |
|
122 | + if (!in_array($hxff, array('127.0.0.1', '::1'))) { |
|
123 | + $ip = $hxff; |
|
124 | + } |
|
123 | 125 | } elseif (isset($_SERVER['REMOTE_ADDR'])) { |
124 | 126 | // Client has direct access to the server. |
125 | 127 | $ip = $_SERVER['REMOTE_ADDR']; |