Show
Ignore:
Timestamp:
04/09/06 19:09:34 (7 years ago)
Author:
ahu
Message:

1) make everyting intrinsically case-insensitive
2) clear up . oddness, removing all calls to toLowerCanonic

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/dnswriter.cc

    r661 r670  
    129129  unsigned int pos=d_content.size() + d_record.size() + d_stuff;  
    130130  string chopped(label); 
    131    
     131 
    132132  for(parts_t::const_iterator i=parts.begin(); i!=parts.end(); ++i) { 
     133    //    cerr<<"chopped: '"<<chopped<<"'\n"; 
    133134    map<string, uint16_t>::iterator li; 
    134135    // see if we've written out this domain before 
     
    148149    d_record.resize(len + i->second - i->first); 
    149150    memcpy(((&*d_record.begin()) + len), label.c_str() + i-> first, i->second - i->first); 
    150  
     151    //    cerr<<"Added: '"<<string(label.c_str() + i->first, i->second - i->first) <<"'\n"; 
    151152    pos+=(i->second - i->first)+1; 
    152     chopOff(chopped);                   // www.powerdns.com -> powerdns.com -> com  
     153    chopOff(chopped);                   // www.powerdns.com. -> powerdns.com. -> com. -> . 
    153154  } 
    154155  d_record.push_back(0);