Changeset 677 for trunk


Ignore:
Timestamp:
01/16/15 18:24:45 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix subtle bug that blocked use of %blank% in per-IP rDNS batch
add/updates; this is needed to allow an IP in a range with a pattern
to be blanked, the same way a smaller range can blank a set of IPs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r674 r677  
    742742      }
    743743      # Validate PTR target for form.
    744       return ('FAIL', $errstr) if ! _check_hostname_form(${$args{host}}, ${$args{rectype}}, $args{defrec}, $args{revrec});
     744      # %blank% skips the IP when expanding a template record
     745      return ('FAIL', $errstr)
     746        unless _check_hostname_form(${$args{host}}, ${$args{rectype}}, $args{defrec}, $args{revrec}) ||
     747                lc(${$args{host}}) eq '%blank%';
    745748    } else { # revrec ne 'y'
    746749      # Fetch the domain and append if the passed hostname isn't within it.
Note: See TracChangeset for help on using the changeset viewer.