]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
tabs are whitespace too! 3769/head
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 2 Apr 2016 13:16:45 +0000 (15:16 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 25 Apr 2016 13:24:18 +0000 (15:24 +0200)
pdns/zoneparser-tng.cc

index 2618d6ecd928c2218257c24ee76f2aa2266282b0..bb65534ecbe7620378150d94f7e60065cd7e0122 100644 (file)
@@ -250,7 +250,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment)
   if(!getTemplateLine() && !getLine())
     return false;
 
-  boost::trim_right_if(d_line, is_any_of(" \r\n\x1a"));
+  boost::trim_right_if(d_line, is_any_of(" \t\r\n\x1a"));
   if(comment)
     comment->clear();
   if(comment && d_line.find(';') != string::npos)
@@ -368,7 +368,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment)
   rr.content=d_line.substr(range.first);
 
   chopComment(rr.content);
-  trim(rr.content);
+  trim_if(rr.content, is_any_of(" \r\n\t\x1a"));
 
   if(equals(rr.content, "@"))
     rr.content=d_zonename;
@@ -387,7 +387,7 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment)
       }
     }
   }
-  trim_if(rr.content, is_any_of(" \r\n\x1a"));
+  trim_if(rr.content, is_any_of(" \r\n\t\x1a"));
 
   vector<string> recparts;
   switch(rr.qtype.getCode()) {