Changeset 597


Ignore:
Timestamp:
03/14/14 18:34:59 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Uncomment space-trimming for reverse records; leading or trailing
spaces are just as evil there as in forward zones.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r596 r597  
    52245224          } # is $val a raw .arpa name?
    52255225
    5226 # not sure this is necessary for revzones.
    5227 #         # Spaces are evil.
    5228 #         $val =~ s/^\s+//;
    5229 #         $val =~ s/\s+$//;
    5230 #         if ($typemap{$type} ne 'TXT') {
    5231 #           # Leading or trailng spaces could be legit in TXT records.
    5232 #           $host =~ s/^\s+//;
    5233 #           $host =~ s/\s+$//;
    5234 #         }
     5226          # Spaces are evil.
     5227          $val =~ s/^\s+//;
     5228          $val =~ s/\s+$//;
     5229          if ($typemap{$type} ne 'TXT') {
     5230            # Leading or trailng spaces could be legit in TXT records.
     5231            $host =~ s/^\s+//;
     5232            $host =~ s/\s+$//;
     5233          }
    52355234
    52365235          _printrec_tiny($zonefilehandle, $recid, 'y', \%recflags, $revzone,
Note: See TracChangeset for help on using the changeset viewer.