diff options
Diffstat (limited to 'inc/auth.php')
-rw-r--r-- | inc/auth.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 5625d6efb..23031a29c 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -245,12 +245,13 @@ function auth_createToken(){ * @return string a MD5 sum of various browser headers */ function auth_browseruid(){ + $ip = clientIP(true); $uid = ''; $uid .= $_SERVER['HTTP_USER_AGENT']; $uid .= $_SERVER['HTTP_ACCEPT_ENCODING']; $uid .= $_SERVER['HTTP_ACCEPT_LANGUAGE']; $uid .= $_SERVER['HTTP_ACCEPT_CHARSET']; - $uid .= substr($_SERVER['REMOTE_ADDR'],0,strpos($_SERVER['REMOTE_ADDR'],'.')); + $uid .= substr($ip,0,strpos($ip,'.')); return md5($uid); } |