Changeset 516 for trunk/dns.cgi
- Timestamp:
- 05/24/13 16:58:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns.cgi
r513 r516 394 394 $webvar{group} = $curgroup if !$webvar{group}; 395 395 fill_grouplist("grouplist", $webvar{group}); 396 fill_loclist( );396 fill_loclist($curgroup, $webvar{defloc} ? $webvar{defloc} : ''); 397 397 398 398 if ($session->param('add_failed')) { … … 420 420 $webvar{makeactive} = 0 if !defined($webvar{makeactive}); 421 421 422 my ($code,$msg) = $dnsdb->addDomain($webvar{domain}, $webvar{group}, ($webvar{makeactive} eq 'on' ? 1 : 0)); 422 my ($code,$msg) = $dnsdb->addDomain($webvar{domain}, $webvar{group}, ($webvar{makeactive} eq 'on' ? 1 : 0), 423 $webvar{defloc}); 423 424 424 425 if ($code eq 'OK') { … … 430 431 $session->param('add_failed', 1); 431 432 ##fixme: domain a security risk for XSS? 432 changepage(page => "newdomain", domain => $webvar{domain}, errmsg => $msg,433 makeactive => ($webvar{makeactive} ? 'y' : 'n'), group => $webvar{group});433 changepage(page => "newdomain", errmsg => $msg, domain => $webvar{domain}, 434 group => $webvar{group}, makeactive => ($webvar{makeactive} ? 'y' : 'n'), defloc => $webvar{defloc}); 434 435 } 435 436
Note:
See TracChangeset
for help on using the changeset viewer.