From: Kees Monshouwer Date: Wed, 22 Apr 2015 17:31:31 +0000 (+0200) Subject: make makeRelative() case insensitive X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~98^2~8^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46d7ac33439796855fdb9aa8dee99934b32352ef;p=thirdparty%2Fpdns.git make makeRelative() case insensitive --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 872a72237d..3605e56dd1 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -658,7 +658,7 @@ string makeRelative(const std::string& fqdn, const std::string& zone) { if(zone.empty()) return fqdn; - if(fqdn != zone) + if(toLower(fqdn) != toLower(zone)) return fqdn.substr(0, fqdn.size() - zone.length() - 1); // strip domain name return ""; }