]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix session ip checking
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Nov 2010 18:29:58 +0000 (21:29 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 29 Nov 2010 18:29:58 +0000 (21:29 +0300)
functions.php

index 7c12d538d4368c0e67406a45a614dcb2a883f6f7..17581789211c663fa7b3fbfa44ced9250575c8f1 100644 (file)
                        break;
                };
 
-               if ($check_ip && strpos($_SERVER['REMOTE_ADDR'], $check_ip) !== 0)
-                               $_SESSION["login_error_msg"] = 
-                                       __("Session failed to validate (incorrect IP)");
+               if ($check_ip && strpos($_SERVER['REMOTE_ADDR'], $check_ip) !== 0) {
+                       $_SESSION["login_error_msg"] = 
+                               __("Session failed to validate (incorrect IP)");
+                       return false;
+               }
 
                if ($_SESSION["ref_schema_version"] != get_schema_version($link, true))
                        return false;