Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

shorten presentation form of IPSECKEY

  • Loading branch information...
commit c2dd3d7cbbbbdbe9a511eb287751067e1a4bd5aa 1 parent 9d6fe70
Matt Simerson authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 client/htdocs/zone.cgi
View
9 client/htdocs/zone.cgi
@@ -609,7 +609,7 @@ sub display_zone_records {
# shorten the max width of the address field (workaround for
# display formatting problem with DomainKey entries.
- if ( length $r_record->{address} > 48 ) {
+ if ( length $r_record->{address} > 45 ) {
if ( $r_record->{type} =~ /^(?:DNSKEY|RRSIG)$/ ) {
$r_record->{title} = $r_record->{address};
$r_record->{address} = substr($r_record->{address}, 0, 35) . ' ...<br>(tip: hover over address)';
@@ -622,12 +622,15 @@ sub display_zone_records {
my $max = 0;
my @lines = ();
while ( $max < length $r_record->{address} ) {
- push @lines, substr( $r_record->{address}, $max, 48 );
- $max += 48;
+ push @lines, substr( $r_record->{address}, $max, 40 );
+ $max += 40;
}
$r_record->{address} = join "<br>", @lines;
};
}
+ if ( $r_record->{type} eq 'IPSECKEY' ) {
+ $r_record->{description} = substr( $r_record->{description}, 0, 10 ) . ' ...';
+ };
if ( $r_record->{type} eq 'AAAA' ) {
$r_record->{address} =~ s/:[0]+/:/g; # compress leading zeros
Please sign in to comment.
Something went wrong with that request. Please try again.