Changeset 513 for trunk


Ignore:
Timestamp:
05/22/13 16:43:07 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Get rid of another pair of minor messes in the error log. See #25.

  • sort of identify link-in or session-expired logins, so we don't try to redirect to the alternate login target when it's not necessary
  • set the sortby argument to in getRecList() if not defined. This may be worth tweaking further to account for default and/or reverse records.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r512 r513  
    35833583  $defsort = 'host' if $args{revrec} eq 'n';     # default sort by host on domain record list
    35843584  $defsort = 'val' if $args{revrec} eq 'y';      # default sort by IP on revzone record list
     3585  $args{sortby} = '' if !$args{sortby};
    35853586  $args{sortby} = $defsort if !$args{revrec};
    35863587  $args{sortby} = $defsort if $args{sortby} !~ /^[\w_,.]+$/;
  • trunk/dns.cgi

    r496 r513  
    249249      # and reconstruct the URI argument list.
    250250      my %target = (page => "domlist");
    251       if ($webvar{target}) {
     251      if ($webvar{target} && $webvar{target} =~ /\?/) {
    252252        my $tmp = (split /\?/, $webvar{target})[1];
    253253        $tmp =~ s/^\&//;
Note: See TracChangeset for help on using the changeset viewer.