From: bert hubert Date: Wed, 9 Dec 2015 18:08:37 +0000 (+0100) Subject: Revert "toDNSString inexplicably did a toLower() on what it wrote it, potentially... X-Git-Tag: dnsdist-1.0.0-alpha1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb87a4b2f15f66b73737c91020a6b86400b1dc8;p=thirdparty%2Fpdns.git Revert "toDNSString inexplicably did a toLower() on what it wrote it, potentially causing 0x20 issues. Now, I assume some code needed this. This commit will find that code." This reverts commit 6d04b73457106e0fbbce7846ea808cd4f4ab7c3b. --- diff --git a/pdns/dnsname.cc b/pdns/dnsname.cc index 3d4ab7309d..cfd38efa02 100644 --- a/pdns/dnsname.cc +++ b/pdns/dnsname.cc @@ -115,7 +115,9 @@ std::string DNSName::toDNSString() const if (empty()) throw std::out_of_range("Attempt to DNSString an unset dnsname"); - return std::string(d_storage.c_str(), d_storage.length()); // this lowercased.. but why?! + string ret(d_storage.c_str(), d_storage.length()); + return toLower(ret); // toLower or not toLower, that is the question + // return ret; } /**