Changeset 417
- Timestamp:
- 10/05/12 17:21:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r415 r417 3457 3457 $location = '' if !$location; 3458 3458 3459 # Spaces are evil. 3460 $$host =~ s/^\s+//; 3461 $$host =~ s/\s+$//; 3462 if ($typemap{$$type} ne 'TXT') { 3463 # Leading or trailng spaces could be legit in TXT records. 3464 $$val =~ s/^\s+//; 3465 $$val =~ s/\s+$//; 3466 } 3467 3459 3468 # prep for validation 3460 3469 my $addr = NetAddr::IP->new($$val); … … 3574 3583 my $location = shift; # may be empty/null/undef depending on caller 3575 3584 $location = '' if !$location; 3585 3586 # Spaces are evil. 3587 $$host =~ s/^\s+//; 3588 $$host =~ s/\s+$//; 3589 if ($typemap{$$type} ne 'TXT') { 3590 # Leading or trailng spaces could be legit in TXT records. 3591 $$val =~ s/^\s+//; 3592 $$val =~ s/\s+$//; 3593 } 3576 3594 3577 3595 # prep for validation … … 4582 4600 $ttl = '' if $ttl == '0'; 4583 4601 4602 # Spaces are evil. 4603 $$host =~ s/^\s+//; 4604 $$host =~ s/\s+$//; 4605 if ($typemap{$$type} ne 'TXT') { 4606 # Leading or trailng spaces could be legit in TXT records. 4607 $$val =~ s/^\s+//; 4608 $$val =~ s/\s+$//; 4609 } 4610 4584 4611 _printrec_tiny($datafile, 'n', \%recflags, 4585 4612 $dom, $host, $type, $val, $dist, $weight, $port, $ttl, $loc, $stamp);
Note:
See TracChangeset
for help on using the changeset viewer.