mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Include 172.16/12 as private address space instead of 172.16/16.
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4079 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
925a38d391
commit
9b1f0ed388
2 changed files with 2 additions and 2 deletions
|
@ -137,8 +137,9 @@ if( getenv('HTTP_X_FORWARDED_FOR') != '' )
|
|||
$entry = trim($entry);
|
||||
if ( preg_match("/^([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $entry, $ip_list) )
|
||||
{
|
||||
$private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.16\..*/', '/^10\..*/', '/^224\..*/', '/^240\..*/');
|
||||
$private_ip = array('/^0\./', '/^127\.0\.0\.1/', '/^192\.168\..*/', '/^172\.((1[6-9])|(2[0-9])|(3[0-1]))\..*/', '/^10\..*/', '/^224\..*/', '/^240\..*/');
|
||||
$found_ip = preg_replace($private_ip, $client_ip, $ip_list[1]);
|
||||
|
||||
if ($client_ip != $found_ip)
|
||||
{
|
||||
$client_ip = $found_ip;
|
||||
|
|
|
@ -116,7 +116,6 @@ p,ul,td {font-size:10pt;}
|
|||
<li>Prevent registration if user is logged in or user trying to register a second time</li>
|
||||
<li>Prevent usage of ALT-255 in Usernames</li>
|
||||
<li>Fixed IP retrieval for users with two proxy setups while the first proxy is hiding the clients IP Address - <b>cosmos</b></li>
|
||||
<li>Fixed Cache-Control header for correctly resetting cookies - <b>cosmos</b></li>
|
||||
</ul>
|
||||
|
||||
<a name="203"></a><h3 class="h3">1.ii. Changes since 2.0.3</h3>
|
||||
|
|
Loading…
Add table
Reference in a new issue