Changeset 252
- Timestamp:
- 02/29/12 17:07:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r251 r252 1996 1996 1997 1997 # 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. 2000 2000 2001 2001 my $domid = 0; … … 2012 2012 # of types. Other things may also be added to validate default records of several flavours. 2013 2013 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; 2015 2015 2016 2016 # 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.