mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +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()
|
||||
{
|
||||
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'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user