Changeset 2207

Show
Ignore:
Timestamp:
06/03/11 17:49:06 (2 years ago)
Author:
ahu
Message:

temporary fix for ticket 356 about binary data in TXT records

Files:
1 modified

Legend:

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

    r2089 r2207  
    391391 
    392392  for(string::const_iterator i=name.begin();i!=name.end();++i) 
    393     if(*i=='"' || *i=='\\'){ 
     393    if(*i=='\n') {  // XXX FIXME this should do a way better job! 
     394      ret += "\\010"; 
     395    } 
     396    else if(*i=='"' || *i=='\\'){ 
    394397      ret += '\\'; 
    395398      ret += *i;