Changeset 443 for trunk


Ignore:
Timestamp:
01/03/13 14:54:37 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix a couple of buglets expanding the %-patterns in _template4_expand()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r442 r443  
    11531153  for (@ipparts) {
    11541154    push @iphex, sprintf("%x", $_);
    1155     push @ippad, sprintf("%u.3", $_);
     1155    push @ippad, sprintf("%0.3u", $_);
    11561156  }
    11571157
     
    11861186  $$tmpl =~ s/\%([1234])d/$ipparts[$1-1]/g;
    11871187  $$tmpl =~ s/\%([1234])h/$iphex[$1-1]/g;
    1188   $$tmpl =~ s/\%([1234])h/$ippad[$1-1]/g;
     1188  $$tmpl =~ s/\%([1234])0/$ippad[$1-1]/g;
    11891189} # _template4_expand()
    11901190
Note: See TracChangeset for help on using the changeset viewer.