]> granicus.if.org Git - pdns/commitdiff
fix up TXT content matching when backend does not add "
authorbert hubert <bert.hubert@powerdns.com>
Wed, 7 Sep 2016 14:15:10 +0000 (16:15 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 13 Sep 2016 10:53:30 +0000 (12:53 +0200)
pdns/dnsbackend.cc

index 5617764ad07b6754557b5f82368c445072d9a0c5..5435b271e27604f6895992f34cd79dee142efe71 100644 (file)
@@ -271,6 +271,8 @@ bool DNSBackend::get(DNSZoneRecord& dzr)
     return false;
   dzr.auth = rr.auth;
   dzr.domain_id = rr.domain_id;
+  if(rr.qtype.getCode() == QType::TXT && !rr.content.empty() && rr.content[0]!='"')
+    rr.content = "\""+ rr.content + "\"";
   dzr.dr = DNSRecord(rr);
   return true;
 }