mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-18 03:11:40 +01:00
remove further private IPs from proxys (incl. space after comma)
This commit is contained in:
parent
14e75fe0dc
commit
ec44ae3905
@ -1254,7 +1254,7 @@ class Session
|
|||||||
public static function getuser_ip()
|
public static function getuser_ip()
|
||||||
{
|
{
|
||||||
return isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
|
return isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
|
||||||
preg_replace('/,10\..*$/', '', $_SERVER['HTTP_X_FORWARDED_FOR']) :
|
preg_replace('/, *10\..*$/', '', $_SERVER['HTTP_X_FORWARDED_FOR']) :
|
||||||
$_SERVER['REMOTE_ADDR'];
|
$_SERVER['REMOTE_ADDR'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user