Changeset 229 for branches


Ignore:
Timestamp:
01/09/2010 05:02:24 PM (2 years ago)
Author:
Acinonyx
Message:

[awmn] Restrict ip ranges to valid b-classes (0-255)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/awmn/globals/functions.php

    r207 r229  
    253253                for ($i=1;$i<=$d;$i++) { 
    254254                        $t1[$p] = $t[$p] * pow(10,$i); 
     255                        if ($t1[$p] > 255) continue; 
    255256                        $t2[$p] = $t1[$p] + pow(10,$i) - 1; 
    256257                        if ($t2[$p] > 255) $t2[$p] = 255; 
Note: See TracChangeset for help on using the changeset viewer.