Changeset 2388
- Timestamp:
- 06/08/20 19:15:11 (4 years ago)
- Location:
- trunk/LATMOS-Accounts
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/Makefile.PL
r2289 r2388 41 41 'Text::CSV' => undef, 42 42 'DateTime::Format::Pg' => undef, 43 'Net::IDN::Encode' => undef, 43 44 }, # e.g., Module::Name => 1.1 44 45 ($] >= 5.005 ? ## Add these new keywords supported since 5.005 -
trunk/LATMOS-Accounts/latmos-accounts.spec.in
r2289 r2388 45 45 BuildRequires: perl(Pod::Xhtml) 46 46 Buildrequires: perl(DateTime::Format::Pg) 47 BuildRequires: perl(Net::IDN::Encode) 47 48 48 49 Requires: perl(Mail::Sendmail) -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Task/Buildnet.pm
r2337 r2388 14 14 use Net::IPv6Addr; 15 15 use URI; # Ensure module is required 16 use URI::_idna;16 use Net::IDN::Encode ':all'; 17 17 18 18 =head1 NAME … … 514 514 $dbzone .= sprintf( 515 515 "%-30s IN %-4s %s\n", 516 URI::_idna::encode($res),516 domain_to_ascii($res), 517 517 ($ip =~ /:/ ? 'AAAA' : 'A'), 518 518 $ip … … 523 523 $dbzone .= sprintf( 524 524 "%-30s IN %-4s %s\n", 525 URI::_idna::encode($_),525 domain_to_ascii($_), 526 526 ($ip =~ /:/ ? 'AAAA' : 'A'), 527 527 $ip … … 541 541 $dbzone .= "; $msg\n"; 542 542 } else { 543 $dbzone .= sprintf("%-30s IN CNAME %s\n", URI::_idna::encode($_), URI::_idna::encode($res));543 $dbzone .= sprintf("%-30s IN CNAME %s\n", domain_to_ascii($_), domain_to_ascii($res)); 544 544 } 545 545 } … … 549 549 $dbzone .= sprintf( 550 550 "%-30s IN SSHFP %s\n", 551 URI::_idna::encode($name),551 domain_to_ascii($name), 552 552 $sshfp, 553 553 ); … … 564 564 565 565 my $domain = $ozone->get_attributes('domain') || ''; 566 my $punyDomain = URI::_idna::encode($domain);566 my $punyDomain = domain_to_ascii($domain); 567 567 my $dbzone = ''; 568 568 if ($ozone->get_attributes('net')) { … … 634 634 $dbzone .= sprintf($fmt, $revip, 635 635 $reverse =~ /\.$/ 636 ? ( URI::_idna::encode($reverse), ($punyDomain ? "$punyDomain." : '.'))637 : ( URI::_idna::encode($reverse), '.'));636 ? (domain_to_ascii($reverse), ($punyDomain ? "$punyDomain." : '.')) 637 : (domain_to_ascii($reverse), '.')); 638 638 } 639 639 }
Note: See TracChangeset
for help on using the changeset viewer.