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