Revision 1424
Added by DarkViper almost 14 years ago
branches/2.8.x/CHANGELOG | ||
---|---|---|
11 | 11 |
! = Update/Change |
12 | 12 |
|
13 | 13 |
------------------------------------- 2.8.2 ------------------------------------- |
14 |
31 Jan-2011 Build 1424 Werner v.d.Decken(DarkViper) |
|
15 |
# typo fix and simplify used_octets calculation |
|
14 | 16 |
30 Jan-2011 Build 1423 Werner v.d.Decken(DarkViper) |
15 | 17 |
! add FINGERPRINT_WITH_IP_OCTETS to table settings |
16 | 18 |
30 Jan-2011 Build 1422 Dietmar Woellbrink (Luisehahne) |
branches/2.8.x/wb/admin/interface/version.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
54 | 54 |
if(!defined('VERSION')) define('VERSION', '2.8.2.RC5'); |
55 |
if(!defined('REVISION')) define('REVISION', '1423');
|
|
55 |
if(!defined('REVISION')) define('REVISION', '1424');
|
|
56 | 56 |
|
57 | 57 |
?> |
branches/2.8.x/wb/framework/SecureForm.php | ||
---|---|---|
83 | 83 |
$clientIp = ( isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '' ); |
84 | 84 |
if(($clientIp != '') && ($usedOctets > 0)){ |
85 | 85 |
$ip = explode('.', $clientIp); |
86 |
if($usedOctets > 0){ |
|
87 |
while(sizeof($ip) >= $usedOctets) { unset($ip[$usedOctets]); } |
|
88 |
} |
|
86 |
while(sizeof($ip) > $usedOctets) { array_pop($ip); } |
|
89 | 87 |
$clientIp = implode('.', $ip); |
90 | 88 |
}else { |
91 | 89 |
$clientIp = 19; |
Also available in: Unified diff
typo fix and simplify used_octets calculation in SecureForm::getFingerprint()