mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Another fix to user_ip determination
git-svn-id: file:///svn/phpbb/trunk@600 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9fd4082bf1
commit
be08b05967
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ if(!empty($HTTP_CLIENT_IP))
|
|||
}
|
||||
else if(!empty($HTTP_X_FORWARDED_FOR))
|
||||
{
|
||||
$client_ip = (ereg("([0-9]+\.[0-9]+\.[0-9]+\.[0-9])+", $HTTP_X_FORWARDED_FOR, $ip_list)) ? $ip_list[0] : $REMOTE_ADDR;
|
||||
$client_ip = (ereg("([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)", $HTTP_X_FORWARDED_FOR, $ip_list)) ? $ip_list[0] : $REMOTE_ADDR;
|
||||
}
|
||||
else if(!empty($HTTP_PROXY_USER))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue