Passed
Push — master ( a54c9d...b24210 )
by
unknown
39s queued 10s
created
DBConnector.class.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -119,7 +119,9 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.