- Timestamp:
- 05/14/13 14:48:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r509 r510 3577 3577 # protection against bad or missing arguments 3578 3578 $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 3581 3582 $args{sortby} = $defsort if !$args{revrec}; 3582 3583 $args{sortby} = $defsort if $args{sortby} !~ /^[\w_.]+$/; … … 3808 3809 my $location = shift; # may be empty/null/undef depending on caller 3809 3810 $location = '' if !$location; 3811 3812 # just set it to an empty string; failures will be caught later. 3813 $$host = '' if !$$host; 3810 3814 3811 3815 # Spaces are evil.
Note:
See TracChangeset
for help on using the changeset viewer.