diff --git a/api/src/Session.php b/api/src/Session.php index 1aa995075b..1ae6d3637f 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -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']; }