Changeset 510


Ignore:
Timestamp:
05/14/13 14:48:57 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Clear up some error-log garbage. See #25.

  • don't try to redefine $defsort in getRecList
  • set the hostname to in updateRec if it arrives undefined (the validation check a little later will trigger the actual error)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r509 r510  
    35773577  # protection against bad or missing arguments
    35783578  $args{sortorder} = 'ASC' if !$args{sortorder} || !grep /^$args{sortorder}$/, ('ASC','DESC');
    3579   my $defsort = 'host' if $args{revrec} eq 'n';     # default sort by host on domain record list
    3580   my $defsort = 'val' if $args{revrec} eq 'y';      # default sort by IP on revzone record list
     3579  my $defsort;
     3580  $defsort = 'host' if $args{revrec} eq 'n';     # default sort by host on domain record list
     3581  $defsort = 'val' if $args{revrec} eq 'y';      # default sort by IP on revzone record list
    35813582  $args{sortby} = $defsort if !$args{revrec};
    35823583  $args{sortby} = $defsort if $args{sortby} !~ /^[\w_.]+$/;
     
    38083809  my $location = shift; # may be empty/null/undef depending on caller
    38093810  $location  = '' if !$location;
     3811
     3812  # just set it to an empty string;  failures will be caught later.
     3813  $$host = '' if !$$host;
    38103814
    38113815  # Spaces are evil.
Note: See TracChangeset for help on using the changeset viewer.