Changeset 543 for trunk/cgi-bin
- Timestamp:
- 11/02/12 16:17:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/admin.cgi
r542 r543 115 115 elsif ($webvar{action} eq 'alloc') { 116 116 117 if ($webvar{cidr} !~ /^\s*(\d{1,3}\.){3}\d{1,3}(\/\d{2})?\s*$/) { 117 my $cidr = new NetAddr::IP $webvar{cidr}; 118 if (!$cidr || "$cidr" =~ /^0/) { 118 119 $page->param(errmsg => "Can't allocate something that's not a netblock/ip"); 119 120 goto ERRJUMP; … … 145 146 } 146 147 147 my $cidr = new NetAddr::IP $webvar{cidr};148 148 my @data; 149 149 if ($webvar{alloctype} eq 'rm') {
Note:
See TracChangeset
for help on using the changeset viewer.