Fix comparing IPs
This commit is contained in:
parent
9c5efb9f8c
commit
681b5e7b7a
|
@ -23,7 +23,7 @@ class AdminerLoginIp {
|
|||
|
||||
function login($login, $password) {
|
||||
foreach ($this->ips as $ip) {
|
||||
if (strncasecmp($_SERVER["REMOTE_ADDR"], $ip, strlen($ip))) {
|
||||
if (strncasecmp($_SERVER["REMOTE_ADDR"], $ip, strlen($ip)) == 0) {
|
||||
if (!$this->forwarded_for) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue