Changeset 252


Ignore:
Timestamp:
02/29/12 17:07:28 (13 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix buglet introduced in r249 to tweak addRec() calling convention

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r251 r252  
    19961996
    19971997  # prep for validation
    1998   my $addr = NetAddr::IP->new($val);
    1999   $host =~ s/\.+$//;    # FQDNs ending in . are an internal detail, and really shouldn't be exposed in the UI.
     1998  my $addr = NetAddr::IP->new($$val);
     1999  $$host =~ s/\.+$//;   # FQDNs ending in . are an internal detail, and really shouldn't be exposed in the UI.
    20002000
    20012001  my $domid = 0;
     
    20122012  # of types.  Other things may also be added to validate default records of several flavours.
    20132013  return ('FAIL', "Hostnames may not contain anything other than (0-9 a-z . _)")
    2014         if $defrec eq 'n' && $host !~ /^[0-9a-z_%.]+$/i;
     2014        if $defrec eq 'n' && $$host !~ /^[0-9a-z_%.]+$/i;
    20152015
    20162016  # Collect these even if we're only doing a simple A record so we can call *any* validation sub
Note: See TracChangeset for help on using the changeset viewer.