From: bert hubert Date: Sat, 2 Apr 2016 13:16:45 +0000 (+0200) Subject: tabs are whitespace too! X-Git-Tag: auth-3.4.9~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3769%2Fhead;p=thirdparty%2Fpdns.git tabs are whitespace too! --- diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index 2618d6ecd9..bb65534ecb 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -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 recparts; switch(rr.qtype.getCode()) {