mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
remove further private IPs from proxys (incl. space after comma)
This commit is contained in:
parent
4622c28bb2
commit
983bf15041
@ -1268,7 +1268,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