]> git.joonet.de Git - adminer.git/commit
Fix forwarded IP comparison in login-ip plugin
authorHugues Lismonde <hugues.lismonde@gmail.com>
Tue, 4 Feb 2020 15:11:53 +0000 (16:11 +0100)
committerJakub Vrána <jakub@vrana.cz>
Tue, 4 Feb 2020 15:58:13 +0000 (16:58 +0100)
commit3f38b61366a6b594102cfe555157bf0e7141cd51
tree420015a3987247c04a44dc68930bc40d2c0b81bc
parent9ab205776d46689f3efdfc2fa6f169af7936b277
Fix forwarded IP comparison in login-ip plugin

The issue described in #372 is the same for the HTTP_X_FORWARDED_FOR comparison. strncasecmp returns 0 when the two strings are equal which is falsey.
plugins/login-ip.php