- Timestamp:
- 10/10/12 13:14:39 (12 years ago)
- Location:
- branches/stable
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable
-
branches/stable/DNSDB.pm
r317 r419 32 32 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); 33 33 34 $VERSION = 1.0. 1; ##VERSION##34 $VERSION = 1.0.2; ##VERSION## 35 35 @ISA = qw(Exporter); 36 36 @EXPORT_OK = qw( … … 1388 1388 my $ttl = shift; 1389 1389 1390 # Spaces are evil. 1391 $host =~ s/^\s+//; 1392 $host =~ s/\s+$//; 1393 if ($typemap{$rectype} ne 'TXT') { 1394 # Leading or trailng spaces could be legit in TXT records. 1395 $val =~ s/^\s+//; 1396 $val =~ s/\s+$//; 1397 } 1398 1390 1399 # Validation 1391 1400 my $addr = NetAddr::IP->new($val); … … 1471 1480 1472 1481 return('FAIL',"Missing standard argument(s)") if !defined($ttl); 1482 1483 # Spaces are evil. 1484 $host =~ s/^\s+//; 1485 $host =~ s/\s+$//; 1486 if ($typemap{$type} ne 'TXT') { 1487 # Leading or trailng spaces could be legit in TXT records. 1488 $val =~ s/^\s+//; 1489 $val =~ s/\s+$//; 1490 } 1473 1491 1474 1492 # only MX and SRV will use these … … 1973 1991 # of remaining data, allows up to 255 raw bytes 1974 1992 1993 # Spaces are evil. 1994 $host =~ s/^\s+//; 1995 $host =~ s/\s+$//; 1996 if ($typemap{$type} ne 'TXT') { 1997 # Leading or trailng spaces could be legit in TXT records. 1998 $val =~ s/^\s+//; 1999 $val =~ s/\s+$//; 2000 } 2001 1975 2002 ##fixme? append . to all host/val hostnames 1976 2003 if ($typemap{$type} eq 'SOA') { -
branches/stable/Makefile
r317 r419 3 3 4 4 PKGNAME=dnsadmin 5 VERSION=1.0. 15 VERSION=1.0.2 6 6 RELEASE=1 7 7 -
branches/stable/dns.cgi
r317 r419 609 609 # prevent out-of-domain records from getting added by appending the domain, or DOMAIN for default records 610 610 my $pname = ($webvar{defrec} eq 'y' ? 'DOMAIN' : domainName($dbh,$webvar{parentid})); 611 $webvar{name} =~ s/\s+$//; 611 612 $webvar{name} =~ s/\.*$/\.$pname/ if $webvar{name} !~ /$pname$/; 612 613
Note:
See TracChangeset
for help on using the changeset viewer.