mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-06 05:59:15 +01:00
use $_SERVER[HTTP_X_FORWARDED_FOR] IP for ACL check if set, if not use $_SERVER[REMOTE_ADDR]
This commit is contained in:
parent
db9c65899e
commit
b7c5ff7642
@ -259,7 +259,8 @@ class setup
|
|||||||
$auth_type = strtolower($_auth_type);
|
$auth_type = strtolower($_auth_type);
|
||||||
$GLOBALS['egw_info']['setup']['HeaderLoginMSG'] = $GLOBALS['egw_info']['setup']['ConfigLoginMSG'] = '';
|
$GLOBALS['egw_info']['setup']['HeaderLoginMSG'] = $GLOBALS['egw_info']['setup']['ConfigLoginMSG'] = '';
|
||||||
|
|
||||||
if(!$this->checkip($_SERVER['REMOTE_ADDR']))
|
if(!$this->checkip(isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
|
||||||
|
$_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']))
|
||||||
{
|
{
|
||||||
//error_log(__METHOD__."('$auth_type') invalid IP");
|
//error_log(__METHOD__."('$auth_type') invalid IP");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user