Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
AuthService: Avoid notice while getting REMOTE_ADDR
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 2, 2016
1 parent 6d0b791 commit 6e2e40b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/core/src/pydio/Core/Services/AuthService.php
Expand Up @@ -164,8 +164,10 @@ public static function checkBruteForceLogin(&$loginArray)
{
if (isSet($_SERVER['REMOTE_ADDR'])) {
$serverAddress = $_SERVER['REMOTE_ADDR'];
} else {
} else if(isSet($_SERVER['SERVER_ADDR'])) {
$serverAddress = $_SERVER['SERVER_ADDR'];
} else {
return TRUE;
}
$login = null;
if (isSet($loginArray[$serverAddress])) {
Expand Down

0 comments on commit 6e2e40b

Please sign in to comment.