Changeset 536 for trunk


Ignore:
Timestamp:
11/25/13 16:02:54 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix slipup with text-only record list; reverse zones had the nominal
"host" and "value" parts reversed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/textrecs.cgi

    r496 r536  
    8282  $rec->{val} = "$rec->{distance}  $rec->{val}" if $rec->{type} eq 'MX';
    8383  $rec->{val} = "$rec->{distance}  $rec->{weight}  $rec->{port}  $rec->{val}" if $rec->{type} eq 'SRV';
    84   printf "%-45s\t%d\t%s\t%s\n", $rec->{host}, $rec->{ttl}, $rec->{type}, $rec->{val};
     84  if ($webvar{revrec} eq 'y') {
     85    printf "%-16s\t%d\t%s\t%s\n", $rec->{val}, $rec->{ttl}, $rec->{type}, $rec->{host};
     86  } else {
     87    printf "%-45s\t%d\t%s\t%s\n", $rec->{host}, $rec->{ttl}, $rec->{type}, $rec->{val};
     88  }
    8589}
    8690#$page->param(defrec => ($webvar{defrec} eq 'y'));
Note: See TracChangeset for help on using the changeset viewer.