Changeset 2333
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Json/List.pm
r1841 r2333 30 30 my @objects = $base->list_objects($otype); 31 31 if (my $term = $c->req->param('term')) { 32 @objects = grep { /\Q$term\E/ } @objects;32 @objects = grep { /\Q$term\E/i } @objects; 33 33 } 34 34 -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm
r2312 r2333 13 13 use Net::IPv4Addr; 14 14 use Net::IPv6Addr; 15 use URI; 15 16 16 17 =head1 NAME … … 512 513 $dbzone .= sprintf( 513 514 "%-30s IN %-4s %s\n", 514 $res,515 URI->new("http://$res")->host, 515 516 ($ip =~ /:/ ? 'AAAA' : 'A'), 516 517 $ip … … 521 522 $dbzone .= sprintf( 522 523 "%-30s IN %-4s %s\n", 523 $_,524 URI->new("http://$_")->host, 524 525 ($ip =~ /:/ ? 'AAAA' : 'A'), 525 526 $ip … … 539 540 $dbzone .= "; $msg\n"; 540 541 } else { 541 $dbzone .= sprintf("%-30s IN CNAME %s\n", $_, $res,);542 $dbzone .= sprintf("%-30s IN CNAME %s\n", URI->new("http://$_")->host, URI->new("http://$res")->host,); 542 543 } 543 544 } … … 547 548 $dbzone .= sprintf( 548 549 "%-30s IN SSHFP %s\n", 549 $name,550 URI->new("http://$name")->host, 550 551 $sshfp, 551 552 ); … … 562 563 563 564 my $domain = $ozone->get_attributes('domain') || ''; 565 my $punyDomain = URI->new("http://$domain")->host; 564 566 my $dbzone = ''; 565 567 if ($ozone->get_attributes('net')) { … … 631 633 $dbzone .= sprintf($fmt, $revip, 632 634 $reverse =~ /\.$/ 633 ? ( $reverse, ($domain ? "$domain." : '.'))634 : ( $reverse, '.'));635 ? (URI->new("http://$reverse")->host, ($punyDomain ? "$punyDomain." : '.')) 636 : (URI->new("http://$reverse")->host, '.')); 635 637 } 636 638 }
Note: See TracChangeset
for help on using the changeset viewer.